<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_pickle(self, filename):
 """Save Camera to a pickle file, given a filename."""

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