code: def get_signed_record(conn: mp.connection.Connection) -> DHTRecord:
      validator = conn.recv()
      record = conn.recv()
  
      record = dataclasses.replace(
          record, value=validator.sign_value(record)
      )
  
      conn.send(record)
      return record
  
file_path: hivemind/tests/test_dht_crypto.py
imports: import dataclasses
  import multiprocessing
  import pickle
  import pytest
  import hivemind
  from hivemind.dht.crypto import RSASignatureValidator
  from hivemind.dht.node import DHTNode
  from hivemind.dht.validation import DHTRecord
  from hivemind.utils.crypto import RSAPrivateKey
  from hivemind.utils.timed_storage import get_dht_time
label_desc: Use image node_id 4 for calling a global function with example usage: get_signed_record(conn) and returns: record