code: def invoke_autoserialize(head_module, filename):
      """
      Perform the autoserialization of a function marked by
          :meth:`nvidia.dali.plugin.triton.autoserialize`.
  
      Assuming, that user marked a function with ``@autoserialize`` decorator, the
      ``invoke_autoserialize`` is a utility function, which will actually perform
      the autoserialization.
      It discovers the ``@autoserialize`` function in a module tree denoted by provided
      ``head_module`` and saves the serialized DALI pipeline to the file in the ``filename`` path.
  
      Only one ``@autoserialize`` function may exist in a given module tree.
  
      :param head_module: Module, denoting the model tree in which the decorated function shall exist.
      :param filename: Path to the file, where the output of serialization will be saved.
      """
      autoserialize_functions = _discover_autoserialize(
          head_module, visited=[]
      )
      if len(autoserialize_functions) > 1:
          raise RuntimeError(
              f"Precisely one autoserialize function must exist in the module. "
              f"Found {len(autoserialize_functions)}: {autoserialize_functions}."
          )
      if len(autoserialize_functions) < 1:
          raise RuntimeError(
              "Precisely one autoserialize function must exist in the module. Found none."
          )
      dali_pipeline = autoserialize_functions[0]
      dali_pipeline().serialize(filename=filename)
  
label_desc: Use image node_id 3 for calling a global function with example usage: invoke_autoserialize(head_module, filename) without return types