code: def save(self, out_path):
          
  
          out = {
              'selectors': [str(x) for x in self.selectors],
              'trace': [{'stream': str(DataStream.FromEncoded(x.stream)), 'time': x.raw_time, 'value': x.value, 'reading_id': x.reading_id} for x in self]
          }
  
          with open(out_path, "wb") as outfile:
              json.dump(out, outfile, indent=4)
docs: Save an ascii representation of this simulation trace.
  
          Args:
              out_path (str): The output path to save this simulation trace.