<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_a_module(self, module_type):
 """ Is the module of the required type? :param module_type: module type to check :type: str :return: True / False """

        if hasattr(self, 'type'):
            return module_type in self.type
        return module_type in self.module_types