code: def __getitem__(self, index_val):
      if isinstance(index_val, slice):
          return Series(
              self.array[index_val],
              index=self.index[index_val],
              name=self.name,
              dtype=self.dtype,
              copy=self.copy,
          )
      return self.array[self.index.index(index_val)].item()
  
file_path: ivy/ivy/functional/frontends/pandas/series.py
imports: import ivy
  from .generic import NDFrame
label_desc: Use image node_id 3 for calling the Series obj's underlying member method code with example usage: obj.__getitem__(index_val) and returns: self, Series