code: def configure_key_provider(graph, key_ids):
      
      if graph.metadata.testing:
          # use static provider
          provider = StaticMasterKeyProvider()
          provider.add_master_keys_from_list(key_ids)
          return provider
  
      # use AWS provider
      return KMSMasterKeyProvider(key_ids=key_ids)
docs: Configure a key provider.
  
      During unit tests, use a static key provider (e.g. without AWS calls).