human
save graph into file.
assistant
Here is a Python function to save graph into file

import matplotlib.pyplot as plt

def save_graph():
    """
    Saves the graph into a file
    """
    plt.savefig('test.png')

# Enter the data
x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
y = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
print((save_graph()))

#Example Output
# None

#Remember to inspect code for bugs.