code: def autoserialize(dali_pipeline):
      """
      Decorator, that marks a DALI pipeline (represented by :meth:`nvidia.dali.pipeline_def`) for
      autoserialization in [DALI Backend's]
      (https://github.com/triton-inference-server/dali_backend#dali-triton-backend) model repository.
  
      For details about the autoserialization feature, please refer to the
      [DALI Backend documentation]
      (https://github.com/triton-inference-server/dali_backend#autoserialization).
  
      Only a ``pipeline_def`` can be decorated with ``autoserialize``.
  
      Only one ``pipeline_def`` may be decorated with ``autoserialize`` in a given program.
  
      To perform autoserialization, please refer to :meth:`nvidia.dali._utils.invoke_autoserialize`.
  
      For more information about Triton, please refer to
      [Triton documentation]
      (https://github.com/triton-inference-server/server#triton-inference-server).
  
      :param dali_pipeline: DALI Python model definition (``pipeline_def``).
      """
      if not getattr(dali_pipeline, "_is_pipeline_def", False):
          raise TypeError(
              "Only `@pipeline_def` can be decorated with `@triton.autoserialize`."
          )
      dali_pipeline._is_autoserialize = True
      return dali_pipeline
  
label_desc: Use image node_id 1 for calling a global function with example usage: autoserialize(dali_pipeline) and returns: dali_pipeline