def METHOD_NAME(pattern=None, multi=None, abd=False, sports=False, anime_type=None):
    """Validate episode naming pattern."""
    if pattern is None:
        return 'invalid'
    if multi is not None:
        multi = int(multi)
    if anime_type is not None:
        anime_type = int(anime_type)
    # air by date shows just need one check, we don't need to worry about season folders
    if abd:
        is_valid = naming.check_valid_abd_naming(pattern)
        require_season_folders = False
    # sport shows just need one check, we don't need to worry about season folders
    elif sports:
        is_valid = naming.check_valid_sports_naming(pattern)
        require_season_folders = False
    else:
        # check validity of single and multi ep cases for the whole path
        is_valid = naming.check_valid_naming(pattern, multi, anime_type)
        # check validity of single and multi ep cases for only the file name
        require_season_folders = naming.check_force_season_folders(pattern, multi, anime_type)
    if is_valid and not require_season_folders:
        return 'valid'
    elif is_valid and require_season_folders:
        return 'seasonfolders'
    else:
        return 'invalid'