<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_collection(self, namespace):
 """Get a pymongo collection from a namespace."""

        database, coll = namespace.split(".", 1)
        return self.primary_client[database][coll]