<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_object(self, identifier, include_inactive=False):
 """Retrieve object with given identifier from the database. Parameters identifier : string Unique object identifier include_inactive : Boolean Flag indicating whether inactive (i.e., deleted) object should be included in the search (i.e., return an object with given identifier if it has been deleted or return None) Returns ------- (Sub-class of)ObjectHandle The database object with given identifier or None if no object with identifier exists. """

        # Find all objects with given identifier. The result size is expected
        # to be zero or one
        query = {'_id': identifier}
        if not include_inactive:
            query['active'] = True
        cursor = self.collection.find(query)
        if cursor.count() > 0:
            return self.from_dict(cursor.next())
        else:
            return None