code: def replace_ellipsis_by_position(ellipsis_idx, names, tensor_names):
      globbed_names = expand_single_ellipsis(
          ellipsis_idx, len(names) - ellipsis_idx - 1, tensor_names
      )
      return (
          names[:ellipsis_idx]
          + globbed_names
          + names[ellipsis_idx + 1 :]
      )
  
file_path: pytorch/torch/_namedtensor_internals.py
imports: from collections import OrderedDict
label_desc: Use image node_id 8 for calling a global function with example usage: replace_ellipsis_by_position(ellipsis_idx, names, tensor_names) and returns: unknown