code: def ops_parse(func, name=None):
      """
      Wraps function with a class to allow __getattr__ on a function.
      """
      new_class = type(
          func.__name__,
          (
              OpsParser,
              object,
          ),
          dict(__doc__=func.__doc__),
      )
      return new_class(func, name)
  
imports: from typing import Any, Dict, Tuple, Callable, TypeVar
  from functools import partial
  from towhee.runtime.operator_manager import OperatorLoader, OperatorRegistry
  from towhee.utils.log import engine_log
label_desc: Use image node_id 1 for calling a global function with example usage: ops_parse(func, name) and returns: new_class