code: def _generate_input_desc(categories_idx, integers, reals):
      """
      Generate the list of <input> subexpression as specified
      by grammar for ArithmeticGenericOp
      """
      input_desc = ""
      for i, (category, idx) in enumerate(categories_idx):
          if category == "edge":
              input_desc += "&{}".format(idx)
          elif category == "integer":
              input_desc += "${}:{}".format(
                  idx, _to_type_desc(integers[idx])
              )
          elif category == "real":
              input_desc += "${}:{}".format(
                  idx, _to_type_desc(reals[idx])
              )
          if i < len(categories_idx) - 1:
              input_desc += " "
      return input_desc
  
file_path: DALI/dali/python/nvidia/dali/ops/_operators/math.py
imports: from nvidia.dali import _conditionals
  from nvidia.dali.data_node import DataNode
  from nvidia.dali.types import DALIDataType, Constant, ScalarConstant, _bool_types, _int_like_types, _float_types
label_desc: Use image node_id 6 for calling a global function with example usage: _generate_input_desc(categories_idx, integers, reals) and returns: input_desc