code: def _create_controller_info_record(self, controller_module_name):
          
          module = self._controller_modules[controller_module_name]
          controller_info = None
          try:
              controller_info = module.get_info(
                  copy.copy(self._controller_objects[controller_module_name]))
          except AttributeError:
              logging.warning('No optional debug info found for controller '
                              '%s. To provide it, implement `get_info`.',
                              controller_module_name)
          try:
              yaml.dump(controller_info)
          except TypeError:
              logging.warning('The info of controller %s in class "%s" is not '
                              'YAML serializable! Coercing it to string.',
                              controller_module_name, self._class_name)
              controller_info = str(controller_info)
          return records.ControllerInfoRecord(
              self._class_name, module.MOBLY_CONTROLLER_CONFIG_NAME,
              controller_info)
docs: Creates controller info record for a particular controller type.
  
          Info is retrieved from all the controller objects spawned from the
          specified module, using the controller module's `get_info` function.
  
          Args:
              controller_module_name: string, the name of the controller module
                  to retrieve info from.
  
          Returns:
              A records.ControllerInfoRecord object.