class_docstr: Helper Object for converting CLI arguments (or SageMaker hyperparameters)
  into Coach configuration.
docstr: Merges configured hyperparameters in the params dict into the config_object.
  Recognized arguments are consumed out of self.hp_dict
  
  Args:
      config_object (obj):  will be something like a Coach TaskParameters object, where we're setting properties
      params (dict): comes from the command line (and thus customer-specified hyperparameters)
      prefix (str): string prefix for which items in params to use.  (e.g. "rl.task_params.")
docstr_tok: ["Merges","configured","hyperparameters","in","the","params","dict","into","the","config_object",".","Recognized","arguments","are","consumed","out","of","self.hp_dict","Args",":","config_object","(","obj",")",":","will","be","something","like","a","Coach","TaskParameters","object",",","where","we","'re","setting","properties","params","(","dict",")",":","comes","from","the","command","line","(","and","thus","customer-specified","hyperparameters",")","prefix","(","str",")",":","string","prefix","for","which","items","in","params","to","use",".","(","e.g",".","``","rl.task_params",".","''",")"]
code: def apply_subset(self, config_object, prefix):
      """Merges configured hyperparameters in the params dict into the config_object.
      Recognized arguments are consumed out of self.hp_dict
  
      Args:
          config_object (obj):  will be something like a Coach TaskParameters object, where we're setting properties
          params (dict): comes from the command line (and thus customer-specified hyperparameters)
          prefix (str): string prefix for which items in params to use.  (e.g. "rl.task_params.")
      """
      # Materialize a copy of the dict as tuples so we can modify the original dict as we go.
      for key, val in list(self.hp_dict.items()):
          if key.startswith(prefix):
              logging.debug(
                  "Configuring %s with %s=%s" % (prefix, key, val)
              )
              subkey = key[len(prefix) :]
              msg = "%s%s=%s" % (prefix, subkey, val)
              try:
                  self._set_rl_property_value(
                      config_object, subkey, val, prefix
                  )
              except:
                  print(
                      "Failure while applying hyperparameter %s" % msg
                  )
                  raise
              del self.hp_dict[key]
  
file_path: sagemaker-python-sdk/tests/data/sagemaker_rl/configuration_list.py
imports: import logging
label_desc: Use image node_id 3 for calling the ConfigurationList obj's underlying member method code with example usage: obj.apply_subset(config_object, prefix) without return types