code: def _init_cloud(self, cloud_arg):
          
          # Disable too broad exception warning
          # pylint: disable=W0703
          cloud = None
          if cloud_arg:
              try:
                  if hasattr(self.args, "cm"):
                      cloud_module = self.args.cm if self.args.cm else None
                      self.logger.info("Creating cloud module {}.".format(cloud_module))
                  else:
                      cloud_module = None
  
                  cloud = Cloud(host=None, module=cloud_module, logger=self.logger, args=self.args)
              except Exception as error:
                  self.logger.warning("Cloud module could not be initialized: {}".format(error))
                  cloud = None
          return cloud
docs: Initializes Cloud module if cloud_arg is set.
  
          :param cloud_arg: taken from args.cloud
          :return: cloud module object instance