def METHOD_NAME(value):
    if isinstance(value, (str, int, bool, float)):
        return str(value)
    raise ValueError(
        "Expected a string (or something trivially convertable to a "
        "string). Got a '{}' with value '{}'"
        .format(type(value), value)
    )