code: def parse_getitem(self, obj):
      self.stream.pop("PAREN_OPEN", "[")
  
      dims = [self.parse_number()]
  
      while self.stream.pop_if("COMMA"):
          dims.append(self.parse_number())
  
      self.stream.pop("PARAN_CLOSE", "]")
  
      if len(dims) == 1:
          return GetItem(obj, dims[0])
      else:
          return GetItem(obj, tuple(dims))
  
imports: import re
  from dataclasses import dataclass, InitVar, field
  from itertools import chain
  from typing import Any, Dict, List, Union, Optional, ClassVar
  import numpy
  from toolz import valfilter, valmap
label_desc: Use image node_id 3 for calling the Parser obj's underlying member method code with example usage: obj.parse_getitem(obj) and returns: GetItem, GetItem