code: def test_autoescape_select(self):
      func = select_autoescape(
          enabled_extensions=("html", ".htm"),
          disabled_extensions=("txt",),
          default_for_string="STRING",
          default="NONE",
      )
  
      assert func(None) == "STRING"
      assert func("unknown.foo") == "NONE"
      assert func("foo.html")
      assert func("foo.htm")
      assert not func("foo.txt")
      assert func("FOO.HTML")
      assert not func("FOO.TXT")
  
imports: import pickle
  import random
  from collections import deque
  from copy import copy
  import pytest
  from markupsafe import Markup
  from jinja2.utils import consume
  from jinja2.utils import generate_lorem_ipsum
  from jinja2.utils import LRUCache
  from jinja2.utils import missing
  from jinja2.utils import object_type_repr
  from jinja2.utils import select_autoescape
  from jinja2.utils import urlize
label_desc: Use image node_id 2 for calling the TestHelpers obj's underlying member method code with example usage: obj.test_autoescape_select() without return types