code: def _is_class_method(func: Callable):
      if not isinstance(func, types.FunctionType):
          return False
      # if not callable(func):
      #     return False
  
      import inspect
  
      spec: inspect.Signature = inspect.signature(func)
      params: List[inspect.Parameter] = list(spec.parameters.values())
      if len(params) == 0:
          raise RuntimeError(
              "Can only have methods in a config class", func
          )
      p = params[0]
      if p.kind != p.POSITIONAL_OR_KEYWORD:
          raise RuntimeError(
              "Can only have methods in a config class", func
          )
      if p.name != "self":
          raise RuntimeError(
              "Can only have methods in a config class", func
          )
  
      return True
  
imports: import types
  import warnings
  from collections import OrderedDict
  from typing import Dict, List, Callable, Union, Tuple, Optional, Type, Set, Iterable, Any
  from .config_function import ConfigFunction
  from .config_item import ConfigItem
  from .eval_function import EvalFunction
  from .utils import Value
  from ...None import monit
label_desc: Use image node_id 1 for calling a global function with example usage: _is_class_method(func) and returns: True, False