code: def verify_token_record(token_record, public_key_or_address,
                          signing_algorithm="ES256K"):
      
      if "token" not in token_record:
          raise ValueError("Token record must have a token inside it")
  
      token = token_record["token"]
  
      decoded_token = verify_token(
          token, public_key_or_address, signing_algorithm=signing_algorithm)
      token_payload = decoded_token["payload"]
      issuer_public_key = token_payload["issuer"]["publicKey"]
  
      if "parentPublicKey" in token_record:
          if issuer_public_key == token_record["parentPublicKey"]:
              pass
          else:
              raise ValueError(
                  "Verification of tokens signed with keychains is not yet supported")
  
      return decoded_token
docs: A function for validating an individual token record and extracting
          the decoded token.