def METHOD_NAME(value):
    # check for value's type to be a number or a string
    if not isinstance(value, (Number, str)):
        return False
    try:
        # value is either number or string, try to convert to float
        float(value)
        # conversion succeed
        return True
    except ValueError:
        # value was a string not representing a number
        return False