code: def sign_token_records(profile_components, parent_private_key,
                         signing_algorithm="ES256K"):
      
  
      if signing_algorithm != "ES256K":
          raise ValueError("Signing algorithm not supported")
  
      token_records = []
  
      for profile_component in profile_components:
          private_key = ECPrivateKey(parent_private_key)
          public_key = private_key.public_key()
          subject = {
              "publicKey": public_key.to_hex()
          }
          token = sign_token(profile_component, private_key.to_hex(), subject,
                             signing_algorithm=signing_algorithm)
          token_record = wrap_token(token)
          token_record["parentPublicKey"] = public_key.to_hex()
          token_records.append(token_record)
  
      return token_records
docs: Function for iterating through a list of profile components and
          signing separate individual profile tokens.