def METHOD_NAME(self, filename: Text):
    """Save the configuration to a JSON file.
    Arguments:
        filename: Path to save the training job file to.
    """
    self.filename = filename
    with open(filename, "w") as f:
        f.write(self.to_json())