def is_valid_channel_name(name):
    """
    Return True if the given name is a valid channel name.
    """
    # Check channel name length
    if len(name) == 0 or len(name) > 50:
        return False

    # Check if channel name is valid
    valid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`~!@#$%^&*()-=_+[]{}\\|;':\"./<>?"  # noqa
    invalid = set(name) - set(valid)
    return not bool(invalid)