code: def load_config(self, config):
          
          for k, v in config.items():
              if hasattr(self, k):
                  raise DeviceError(
                      self,
                      ('Attribute %s already exists with value %s, cannot set '
                       'again.') % (k, getattr(self, k)))
              setattr(self, k, v)
docs: Add attributes to the AndroidDevice object based on config.
  
          Args:
              config: A dictionary representing the configs.
  
          Raises:
              Error: The config is trying to overwrite an existing attribute.