code: def _arg_type_annotation(arg_dtype):
      """Convert regular key-word argument type to annotation. Handles Lists and scalars.
  
      Parameters
      ----------
      arg_dtype : DALIDataType
          The type information from schema
      """
      if arg_dtype in _types._vector_types:
          scalar_dtype = _types._vector_types[arg_dtype]
          scalar_annotation = _scalar_element_annotation(scalar_dtype)
          # DALI allows tuples and lists as a "sequence" parameter
          return Union[Sequence[scalar_annotation], scalar_annotation]
      return _scalar_element_annotation(arg_dtype)
  
imports: from inspect import Parameter, Signature
  import ast
  import os
  from pathlib import Path
  from contextlib import closing
  from typing import Union, Optional
  from typing import Sequence, List, Any
  from nvidia.dali import backend
  from nvidia.dali import types
  from nvidia.dali.ops import _registry, _names, _docs
  from nvidia.dali import types
  from nvidia.dali import ops, fn
label_desc: Use image node_id 3 for calling a global function with example usage: _arg_type_annotation(arg_dtype) and returns: _scalar_element_annotation, Union