code: def getTime(
      self, model, n, hp, h, mode
  ):  # assumes costs is soreted wrt hp and n
      times = []
      if mode == "hp":
          n_ = []
          for c in self.costs:
              if c.model == model:
                  if c.h == hp:
                      times.append(c.time)
                      n_.append(c.n)
          return times, n_
  
      elif mode == "h":
          n_ = []
          for c in self.costs:
              if c.model == model:
                  if (c.h / c.n) == h:
                      times.append(c.time)
                      n_.append(c.n)
          return times, n_
  
      elif mode == "n":
          h_ = []
          for c in self.costs:
              if c.model == model:
                  if c.n == n:
                      times.append(c.time)
                      h_.append(c.h)
          return times, h_
  
file_path: vowpal_wabbit/demo/cats/utility/get_online_results.py
imports: import sys
  import getopt
  from confidence_interval import ConfidenceInterval
label_desc: Use image node_id 7 for calling the EvaluatorOnline obj's underlying member method code with example usage: obj.getTime(model, n, hp, h, mode) and returns: times,  n_, times,  n_, times,  h_