def METHOD_NAME(manager: PrivacyManager):
    if manager and not isinstance(manager, PrivacyManager):
        raise TypeError(f"manager must be an instance of PrivacyManager, but get {type(manager)}.")
    PrivacyService.manager = manager