code: def is_a_module(self, module_type):
          
          if hasattr(self, 'type'):
              return module_type in self.type
          return module_type in self.module_types
docs: Is the module of the required type?
  
          :param module_type: module type to check
          :type: str
          :return: True / False