code: def __getitem__(self, key):
      if key in self.timestamps:
          pos = self.timestamps.index(key)
          return self.values[pos]
      else:
          raise ValueError(
              "Timestamp does not exist in TimeSeries object"
          )
  
imports: import numpy
label_desc: Use image node_id 8 for calling the TimeSeries obj's underlying member method code with example usage: obj.__getitem__(key) and returns: self