def save_metadata(self, file_path):
    """Saves a json file of the search result metadata.
    
    Saves a json file of the search result metadata from :class:`api.results`.metadata.
    
    Args:
      file_path (str):
        Path to the json file to save metadata to.
    """
    data = self.metadata
    with open(file_path, 'w')  as out_file:
      json.dump(data, out_file)
Saves a json file of the search result metadata.
    
    Saves a json file of the search result metadata from :class:`api.results`.metadata.
    
    Args:
      file_path (str):
        Path to the json file to save metadata to.