code: def setConfiguration(self, configuration):
          r
          if isinstance(configuration, Configuration):
             configuration = configuration.value
  
          self.dev.set_configuration(configuration)
docs: r"""Set the active configuration of a device.
  
          Arguments:
              configuration: a configuration value or a Configuration object.