code: def configure_encryptor(graph):
      
      encryptor = graph.multi_tenant_key_registry.make_encryptor(graph)
  
      # register the encryptor will each encryptable type
      for encryptable in EncryptableMixin.__subclasses__():
          encryptable.register(encryptor)
  
      return encryptor
docs: Create a MultiTenantEncryptor from configured keys.