code: def parse_variable_value(value):
      """
      Parses value as an option value for the given name and returns
      the interpreted value.
  
      >>> parse_variable_value('True')
      True
      >>> parse_variable_value('true')
      'true'
      >>> parse_variable_value('us-ascii')
      'us-ascii'
      >>> parse_variable_value('str')
      'str'
      >>> parse_variable_value('123')
      123
      >>> parse_variable_value('1.23')
      1.23
  
      """
      if value == "True":
          return True
      elif value == "False":
          return False
      elif value == "None":
          return None
      elif value.isdigit():
          return int(value)
      else:
          try:
              value = float(value)
          except Exception:
              # Not a float
              pass
          return value
  
file_path: catboost/contrib/tools/cython/Cython/Compiler/Options.py
imports: from __future__ import absolute_import
label_desc: Use image node_id 6 for calling a global function with example usage: parse_variable_value(value) and returns: True, False, None, int, value