@staticmethod<EOL><INDENT>def str_to_num(str_value):<DEDENT>
str_value = str(str_value)<EOL>try:<EOL><INDENT>return int(str_value)<EOL><DEDENT>except ValueError:<EOL><INDENT>return float(str_value)<EOL><DEDENT>
Convert str_value to an int or a float, depending on the
        numeric value represented by str_value.