original_docstring: 
      Auxiliary function for __getitem__ to reconstruct the explicit slicing
      of the array if there are ellipsis or missing axes.
  
      
docstring: Auxiliary function for __getitem__ to reconstruct the explicit slicing
  of the array if there are ellipsis or missing axes.
docstring_tokens: Auxiliary function for __getitem__ to reconstruct the explicit slicing of the array if there are ellipsis or missing axes .
code: def _reconstruct_full_slices(shape_, index):
      """
      Auxiliary function for __getitem__ to reconstruct the explicit slicing
      of the array if there are ellipsis or missing axes.
  
      """
      if not isinstance(index, tuple):
          index = (index,)
      slices = []
      idx_len, rank = len(index), len(shape_)
  
      for slice_ in index:
          if slice_ is Ellipsis:
              slices.extend([slice(None)] * (rank+1-idx_len))
          elif isinstance(slice_, slice):
              slices.append(slice_)
          elif isinstance(slice_, (int)):
              slices.append(slice_)
  
      sli_len = len(slices)
      if sli_len > rank:
          msg = 'too many indices for array'
          raise IndexError(msg)
      elif sli_len < rank:
          slices.extend([slice(None)]*(rank-sli_len))
  
      return slices
code_tokens: def _reconstruct_full_slices ( shape_ , index ) : if not isinstance ( index , tuple ) : index = ( index , ) slices = [ ] idx_len , rank = len ( index ) , len ( shape_ ) for slice_ in index : if slice_ is Ellipsis : slices . extend ( [ slice ( None ) ] * ( rank + 1 - idx_len ) ) elif isinstance ( slice_ , slice ) : slices . append ( slice_ ) elif isinstance ( slice_ , ( int ) ) : slices . append ( slice_ ) sli_len = len ( slices ) if sli_len > rank : msg = 'too many indices for array' raise IndexError ( msg ) elif sli_len < rank : slices . extend ( [ slice ( None ) ] * ( rank - sli_len ) ) return slices
short_docstring: Auxiliary function for __getitem__ to reconstruct the explicit slicing
  of the array if there are ellipsis or missing axes.
short_docstring_tokens: Auxiliary function for __getitem__ to reconstruct the explicit slicing of the array if there are ellipsis or missing axes .
comment: """
      Auxiliary function for __getitem__ to reconstruct the explicit slicing
      of the array if there are ellipsis or missing axes.
  
      """