<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def model_to_file(model, filename):
 """Dump a model to a file as a pickle file. Parameters model: Model Model instance. filename: str A path to the file in which to store the pickle output. """

    with open(filename, 'wb') as f:
        pickle.dump(model, f)