code: def create_pandas_abc_type(name, attr, comp):
      def _check(inst) -> bool:
          return getattr(inst, attr, "_typ") in comp
  
      # https://github.com/python/mypy/issues/1006
      # error: 'classmethod' used with a non-method
      @classmethod  # type: ignore[misc]
      def _instancecheck(cls, inst) -> bool:
          return _check(inst) and not isinstance(inst, type)
  
      @classmethod  # type: ignore[misc]
      def _subclasscheck(cls, inst) -> bool:
          # Raise instead of returning False
          # This is consistent with default __subclasscheck__ behavior
          if not isinstance(inst, type):
              raise TypeError("issubclass() arg 1 must be a class")
  
          return _check(inst)
  
      dct = {
          "__instancecheck__": _instancecheck,
          "__subclasscheck__": _subclasscheck,
      }
      meta = type("ABCBase", (type,), dct)
      return meta(name, (), dct)
  
label_desc: Use image node_id 1 for calling a global function with example usage: create_pandas_abc_type(name, attr, comp) and returns: meta, unknown, unknown, _check