def _CID_validate_multibase(base: Union[(str, Multibase)]) -> Multibase:
    if isinstance(base, str):
        base = multibase.get(base)
    else:
        multibase.validate_multibase(base)
    return base
def _CID_validate_multibase(base: Union[(str, Multibase)]) -> Multibase:
    if isinstance(base, str):
        base = multibase.get(base)
    else:
        multibase.validate_multibase(base)
    return base