<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dumps(data, **kwargs):
 """Create a string CCSDS representation of the object Same arguments and behaviour as :py:func:`dump` """

    if isinstance(data, Ephem) or (isinstance(data, Iterable) and all(isinstance(x, Ephem) for x in data)):
        content = _dump_oem(data, **kwargs)
    elif isinstance(data, Orbit):
        content = _dump_opm(data, **kwargs)
    else:
        raise TypeError("Unknown object type")

    return content