<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def container_permitted(self, name):
 """Return whether or not a container is permitted. :param name: Container name. :return: ``True`` if container is permitted. :rtype: ``bool`` """

        white = self._container_whitelist
        black = self._container_blacklist
        return name not in black and (not white or name in white)