class_docstr: Helper Object for converting CLI arguments (or SageMaker hyperparameters)
  into Coach configuration.
docstr: Converts the val to an appropriately typed Python object.
  Automatically detects ints and floats when possible.
  If the key takes the form "foo:bar" then it looks in ALLOWED_TYPES
  for an entry of bar, and instantiates one of those objects, passing
  val to the constructor.  So if key="foo:EnvironmentSteps" then
docstr_tok: ["Converts","the","val","to","an","appropriately","typed","Python","object",".","Automatically","detects","ints","and","floats","when","possible",".","If","the","key","takes","the","form","``","foo",":","bar","''","then","it","looks","in","ALLOWED_TYPES","for","an","entry","of","bar",",","and","instantiates","one","of","those","objects",",","passing","val","to","the","constructor",".","So","if","key=","''","foo",":","EnvironmentSteps","''","then"]
code: def _parse_type(self, key, val):
      """Converts the val to an appropriately typed Python object.
      Automatically detects ints and floats when possible.
      If the key takes the form "foo:bar" then it looks in ALLOWED_TYPES
      for an entry of bar, and instantiates one of those objects, passing
      val to the constructor.  So if key="foo:EnvironmentSteps" then
      """
      val = self._autotype(val)
      if key.find(":") > 0:
          key, obj_type = key.split(":", 1)
          cls = self.ALLOWED_TYPES.get(obj_type)
          if not cls:
              raise ValueError(
                  "Unrecognized object type %s.  Allowed values are %s"
                  % (obj_type, self.ALLOWED_TYPES.keys())
              )
          val = cls(val)
      return key, val
  
file_path: sagemaker-python-sdk/tests/data/sagemaker_rl/configuration_list.py
imports: import logging
label_desc: Use image node_id 6 for calling the ConfigurationList obj's underlying member method code with example usage: obj._parse_type(key, val) and returns: key,  val