<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def loads(text):
 """Read CCSDS from a string, and provide the beyond class corresponding; Orbit or list of Orbit if it's an OPM, Ephem if it's an OEM. Args: text (str):
 Return: Orbit or Ephem Raise: ValueError: when the text is not a recognizable CCSDS format """

    if text.startswith("CCSDS_OEM_VERS"):
        func = _read_oem
    elif text.startswith("CCSDS_OPM_VERS"):
        func = _read_opm
    else:
        raise ValueError("Unknown CCSDS type")
    return func(text)