code: def _result_from_record(record: "pb.Record") -> "pb.Result":
      result = pb.Result(uuid=record.uuid, control=record.control)
      return result
  
file_path: wandb/wandb/sdk/lib/proto_util.py
imports: import json
  from typing import TYPE_CHECKING, Any, Dict, Union
  from wandb.proto import wandb_internal_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: _result_from_record(record) and returns: result