def check_text_data(data):
    """Check if the given data is text-based."""
    if isinstance(data, str):
        return True
    if isinstance(data, list):
        return all(isinstance(x, str) for x in data)
    return False
Check if the given data is text-based.
examples/clip/openvino/user_script.py