Prepare check for catalog endpoint

    Parameters:
        data (Object or ObjectID): Check ID or check definition
    Returns:
        Tuple[str, dict]: where first is ID and second is check definition

def prepare_check(data):
    """Prepare check for catalog endpoint

    Parameters:
        data (Object or ObjectID): Check ID or check definition
    Returns:
        Tuple[str, dict]: where first is ID and second is check definition
    """
    if not data:
        return None, {}

    if isinstance(data, str):
        return data, {}

    result = {}
    if "ID" in data:
        result["CheckID"] = data["ID"]
    for k in ("Node", "CheckID", "Name", "Notes", "Status", "ServiceID"):
        if k in data:
            result[k] = data[k]
    if list(result) == ["CheckID"]:
        return result["CheckID"], {}
    return result.get("CheckID"), result