<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_one(cls, filter=None, *args, **kwargs):
 """ Returns one document dict if one passes the filter. Returns None otherwise. """

        return cls.collection.find_one(filter, *args, **kwargs)