code: def _wrap_op(op_class, submodule, parent_module, wrapper_doc):
      """Wrap the DALI Operator with fn API and insert the function into appropriate module.
  
      Args:
          op_class: Op class to wrap
          submodule: Additional submodule (scope)
          parent_module (str): If set to None, the wrapper is placed in nvidia.dali.fn module,
              otherwise in a specified parent module.
          wrapper_doc (str): Documentation of the wrapper function
      """
      from nvidia.dali._utils import eager_utils
  
      schema = _b.TryGetSchema(op_class.schema_name)
      make_hidden = schema.IsDocHidden() if schema else False
      wrapper_name = _to_snake_case(op_class.__name__)
  
      # Add operator to eager API.
      eager_utils._wrap_eager_op(
          op_class,
          submodule,
          parent_module,
          wrapper_name,
          wrapper_doc,
          make_hidden,
      )
  
      if parent_module is None:
          fn_module = sys.modules[__name__]
      else:
          fn_module = sys.modules[parent_module]
      module = _internal.get_submodule(fn_module, submodule)
      if not getattr(op_class, "_generated", False):
          impl_module_override = op_class._impl_module
      else:
          impl_module_override = None
      if not hasattr(module, wrapper_name):
          wrap_func = _wrap_op_fn(op_class, wrapper_name, wrapper_doc)
          setattr(module, wrapper_name, wrap_func)
          _internal._adjust_operator_module(
              wrap_func, fn_module, submodule, impl_module_override
          )
          if make_hidden:
              parent_module = _internal.get_submodule(
                  fn_module, submodule[:-1]
              )
              setattr(parent_module, wrapper_name, wrap_func)
  
file_path: DALI/dali/python/nvidia/dali/fn/__init__.py
imports: import sys
  from nvidia.dali import backend
  from nvidia.dali import internal
  from nvidia.dali.external_source import external_source
label_desc: Use image node_id 4 for calling a global function with example usage: _wrap_op(op_class, submodule, parent_module, wrapper_doc) without return types