code: def _get_positional_input_param(schema, idx, annotation):
      """Get the Parameter representing positional inputs at `idx`. Automatically mark it as
      optional. The DataNode annotation currently hides the possibility of MIS.
  
      The double underscore `__` prefix for argument name is an additional way to indicate
      positional only arguments, as per MyPy docs. It is obeyed by the VSCode.
      """
      # Only first MinNumInputs are mandatory, the rest are optional:
      default = Parameter.empty if idx < schema.MinNumInput() else None
      annotation = (
          annotation
          if idx < schema.MinNumInput()
          else Optional[annotation]
      )
      return Parameter(
          _names._get_input_name(schema, idx),
          kind=Parameter.POSITIONAL_ONLY,
          default=default,
          annotation=annotation,
      )
  
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 4 for calling a global function with example usage: _get_positional_input_param(schema, idx, annotation) and returns: Parameter