def load_environment(self):
        """Load an ``Environment`` defined in the Python module.

        Expects as default a global name ``environment`` to be defined,
        or overriden by passing a string ``module:environent`` to the
        constructor.
        """
        try:
            return getattr(self.module, self.environment)
        except __HOLE__ as e:
            raise LoaderError(e)
dataset/ETHPy150Open miracle2k/webassets/src/webassets/loaders.py/PythonLoader.load_environment