code: def save(self, path):
          
          with open(path, 'w') as out_file:
              json.dump(self.to_dict(), out_file, indent=4)
docs: Save the specification of this MLPipeline in a JSON file.
  
          The content of the JSON file is the dict returned by the `to_dict` method.
  
          Args:
              path (str): Path to the JSON file to write.