def METHOD_NAME(
    compounds: Union[jsonapi.CompoundObject, List[jsonapi.CompoundObject]]
) -> List[Tuple[str, jsonapi.CompoundFormat]]:
    if isinstance(compounds, list):
        return [(comp.structure, comp.format) for comp in compounds]
    return [(compounds.structure, compounds.format)]