code: def test_context_finalize(self):
      @pass_context
      def finalize(context, value):
          return value * context["scale"]
  
      e = Environment(finalize=finalize)
      t = e.from_string("{{ value }}")
      assert t.render(value=5, scale=3) == "15"
  
imports: import shutil
  import tempfile
  from pathlib import Path
  import pytest
  from jinja2 import ChainableUndefined
  from jinja2 import DebugUndefined
  from jinja2 import DictLoader
  from jinja2 import Environment
  from jinja2 import is_undefined
  from jinja2 import make_logging_undefined
  from jinja2 import meta
  from jinja2 import StrictUndefined
  from jinja2 import Template
  from jinja2 import TemplatesNotFound
  from jinja2 import Undefined
  from jinja2 import UndefinedError
  from jinja2.compiler import CodeGenerator
  from jinja2.runtime import Context
  from jinja2.utils import Cycler
  from jinja2.utils import pass_context
  from jinja2.utils import pass_environment
  from jinja2.utils import pass_eval_context
label_desc: Use image node_id 5 for calling the TestExtendedAPI obj's underlying member method code with example usage: obj.test_context_finalize() and returns: unknown