code: def value(self):
          
          module = __import__(self.module, fromlist=self.module.split('.'))
          if self.name is None:
              return module
          return getattr(module, self.name)
docs: Import the constant from `self.module`