code: def _parse(string):
      
      if not isinstance(string, str):
          raise ValueError('Config value "{0}" expected to be string.'
                           .format(string))
      if string in ['true', 'True']:
          return True
      elif string in ['false', 'False']:
          return False
      elif string in ['float64', 'float32', 'float16',
                      'int64', 'int32', 'int16']:
          return getattr(np, string)
      else:
          try:
              return int(string)
          except ValueError:
              pass
          try:
              return float(string)
          except ValueError:
              return string
docs: Very simple config values parser.