TypeError: ST7789.display() missing 1 required positional argument: 'image'

By calling ST7789.display, it looks like you are calling the method on the class rather than the instance. In the linked example, it calls st7735.display - note the use of lower case - which refers to the instance of the ST7735 class.

In your code, your instance isn’t called st7735 or st7789 but display. So, maybe display.display would work.