import random


def _generate_legal_status() -> str:
    """
    Generates a random legal status from the codeset.

    :returns: Legal status string
    """
    return random.choice(['C1', 'C2', 'D1', 'E1', 'V2', 'V3', 'V4', 'L1', 'L2', 'L3', 'J1', 'J2', 'J3'])