parameters: (value: str)
docstring: Converts string representation of the token to a value with proper data type.
          :param value: string representation to be converted.
          :return: converted to a correct data type value.
docstring_summary: Converts string representation of the token to a value with proper data type.
          :param value: string representation to be converted.
          :return: converted to a correct data type value.
docstring_tokens: Converts string representation of the token to a value with proper data type . : param value : string representation to be converted . : return : converted to a correct data type value .
function: def _convert_value_to_correct_datatype(value: str):
          """
          Converts string representation of the token to a value with proper data type.
          :param value: string representation to be converted.
          :return: converted to a correct data type value.
          """
          if value == 'true':
              return True
          if value == 'false':
              return False
          try:
              result = ast.literal_eval(value)
              return result
          except Exception:  # if it is not possible to evaluate the value then consider it as a string
              return value
function_tokens: def _convert_value_to_correct_datatype ( value : str ) : if value == 'true' : return True if value == 'false' : return False try : result = ast . literal_eval ( value ) return result except Exception : # if it is not possible to evaluate the value then consider it as a string return value