def METHOD_NAME(self, context):
    self.context = context
    # setup pygments build directory
    self.temp_dir = TemporaryDirectory()
    self.theme_path = os.path.join(self.temp_dir.name, 'pygments/theme/')
    self.path = os.path.join(self.theme_path, 'static/pygments.css')
    self.context.mkdir_p(self.path, force=True)
    # compile pygments
    self.reset_options()
    # register flamingo theme
    self.THEME_PATHS = [
        self.theme_path,
    ]
    context.settings.LIVE_SERVER_IGNORE_PREFIX.append(self.temp_dir.name)