def __call__(self, *args, **kwargs):
        """This is only here so that some API misusages are easier to debug.
        """
        raise TypeError("'Database' object is not callable. If you meant to "
                        "call the '%s' method on a '%s' object it is "
                        "failing because no such method exists." % (
                            self.__name, self.__client.__class__.__name__))
This is only here so that some API misusages are easier to debug.
        
stackoverflow/venv/lib/python3.6/site-packages/pymongo/database.py