code: def from_class_method(cls, method, ctype_self, instance):
      class _Wrapper(BuiltinFunc):
          def call(self, env, *args, **kwargs):
              return method(ctype_self, env, instance, *args)
  
      return _Wrapper()
  
imports: import functools
  import itertools
  from typing import Any, NoReturn, Optional, Union, TYPE_CHECKING
  from cupyx.jit import _cuda_types
  from cupyx.jit import _cuda_typerules
label_desc: Use image node_id 6 for calling the BuiltinFunc obj's underlying member method code with example usage: obj.from_class_method(cls, method, ctype_instance) and returns: _Wrapper, method