code: def store(self):
          
          output = tempfile.NamedTemporaryFile(suffix='.json')
          try:
  
              def write(o):
                  line = json.dumps(o, default=json_default)
                  return output.write(line + '\n')
  
              yield write
  
              output.seek(0)
              log.info("Uploading generated table (%s)...", self._obj)
              self.save_file(output.name, destructive=True)
          finally:
              try:
                  output.close()
              except:
                  pass
docs: Create a context manager to store records in the cleaned
          table.