code: def __instancecheck__(cls, instance):
      cache = _instance_check_cache[tuple(cls.arguments_list)]
  
      def get():
          "The actual test."
          if not hasattr(instance, "test_args"):
              return False
          return instance.test_args(*cls.arguments_list)
  
      try:
          return cache[instance]
      except KeyError:
          result = get()
          cache[instance] = result
          return result
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/filters/types.py
imports: from __future__ import unicode_literals
  from six import with_metaclass
  from collections import defaultdict
  import weakref
label_desc: Use image node_id 1 for calling the _FilterTypeMeta obj's underlying member method code with example usage: obj.__instancecheck__(cls, instance) and returns: instance, cache, False, result