code: def get_all_traces(self, ignore_empty_context=False) -> list:
      if self._tmp_all_traces:
          return self._tmp_all_traces
      traces = []
      if self.context is None:
          if not ignore_empty_context:
              # Get whole metric data if no context was provided
              traces.append(Trace(self.repo, self, self.name, None))
      else:
          for trace_context in self.context:
              trace = Trace(self.repo, self, self.name, trace_context)
              traces.append(trace)
      self._tmp_all_traces = traces
      return traces
  
file_path: aim/aim/cli/upgrade/_legacy_repo/repo/metric.py
imports: from typing import Optional, List
  from aim.cli.upgrade._legacy_repo.repo.trace import Trace
label_desc: Use image node_id 8 for calling the Metric obj's underlying member method code with example usage: obj.get_all_traces(ignore_empty_context) and returns: traces, self