code: def normalize_ellipsis(index, size):
      """
      Expand Ellipses in an index to fill the given number of dimensions.
  
      This should satisfy the equation::
  
          x[i] == x[normalize_ellipsis(i, len(x.shape))]
      """
      left, right = parse_ellipsis(index)
      if len(left) + len(right) > size:
          raise ValueError(f"Index is too wide: {index}")
      middle = (slice(None),) * (size - len(left) - len(right))
      return left + middle + right
  
imports: import math
  import operator
  from numbers import Number
  from .op import BINARY_INVERSES, DISTRIBUTIVE_OPS, PRODUCT_TO_POWER, SAFE_BINARY_INVERSES, UNARY_INVERSES, UNITS, BinaryOp, Op, OpMeta, TransformOp, UnaryOp, declare_op_types
label_desc: Use image node_id 5 for calling a global function with example usage: normalize_ellipsis(index, size) and returns: unknown