code: def get_signed_headers(ds_name, key, secret):
      """
      Return a new request header including the key / secret signature
  
      Parameters
      ----------
      ds_name
      key
      secret
  
      Returns
      -------
  
      """
      nonce = str(int(time.time() * 1000))
  
      signature = hmac.new(
          secret.encode("utf-8"),
          "{}{}".format(ds_name, nonce).encode("utf-8"),
          hashlib.sha512,
      ).hexdigest()
  
      headers = {
          "Sign": signature,
          "Key": key,
          "Nonce": nonce,
          "Dataset": ds_name,
      }
  
      return headers
  
file_path: catalyst/catalyst/marketplace/utils/auth_utils.py
imports: import hashlib
  import hmac
  import webbrowser
  import requests
  import time
  from catalyst.marketplace.marketplace_errors import MarketplaceHTTPRequest, MarketplaceWalletNotSupported, MarketplaceEmptySignature
  from catalyst.marketplace.utils.path_utils import get_user_pubaddr, save_user_pubaddr
  from catalyst.constants import AUTH_SERVER, SUPPORTED_WALLETS
label_desc: Use image node_id 2 for calling a global function with example usage: get_signed_headers(ds_name, key, secret) and returns: headers