code: async def set_did_metadata(wallet_handle: int,
                             did: str,
                             metadata: str) -> None:
      
  
      logger = logging.getLogger(__name__)
      logger.debug("set_did_metadata: >>> wallet_handle: %r, did: %r, metadata: %r",
                   wallet_handle,
                   did,
                   metadata)
  
      if not hasattr(set_did_metadata, "cb"):
          logger.debug("set_did_metadata: Creating callback")
          set_did_metadata.cb = create_cb(CFUNCTYPE(None, c_int32, c_int32))
  
      c_wallet_handle = c_int32(wallet_handle)
      c_did = c_char_p(did.encode('utf-8'))
      c_metadata = c_char_p(metadata.encode('utf-8'))
  
      await do_call('indy_set_did_metadata',
                    c_wallet_handle,
                    c_did,
                    c_metadata,
                    set_did_metadata.cb)
  
      logger.debug("set_did_metadata: <<<")
docs: Saves/replaces the meta information for the giving DID in the wallet.
  
      :param wallet_handle: Wallet handle (created by open_wallet).
      :param did: the DID to store metadata.
      :param metadata: the meta information that will be store with the DID.
      :return: Error code