code: def resolve_ellipsis(names, tensor_names, fn_name):
      """
      Expands ... inside `names` to be equal to a list of names from `tensor_names`.
      """
      ellipsis_idx = single_ellipsis_index(names, fn_name)
      if ellipsis_idx is None:
          return names
      return replace_ellipsis_by_position(
          ellipsis_idx, names, tensor_names
      )
  
file_path: pytorch/torch/_namedtensor_internals.py
imports: from collections import OrderedDict
label_desc: Use image node_id 9 for calling a global function with example usage: resolve_ellipsis(names, tensor_names, fn_name) and returns: replace_ellipsis_by_position, names