code: def got_arbiter_module_type_defined(self, module_type):
          for arbiter in self.arbiters:
              for module in getattr(arbiter, 'modules', []):
                  module_name = module.get_name()
                  for mod in self.modules:
                      if getattr(mod, 'python_name', '').strip() == module_type.strip():
                          if getattr(mod, 'name', '').strip() == module_name:
                              return True
          return False