code: def dump_record_to_string(inp, res):
      """
      Dump the measure record to a string.
  
      Parameters
      ----------
      inp: MeasureInput
          The measure input.
  
      res: MeasureResult
          The measure result.
  
      Returns
      -------
      ret: str
          The dumped string.
      """
      return _ffi_api.WriteMeasureRecords(inp, res)
  
imports: import argparse
  import logging
  import os
  import itertools
  import numpy
  import tvm._ffi
  from tvm.runtime import Object
  from .measure import MeasureErrorNo, MeasureCallback
  from .utils import calc_workload_dis_factor, decode_workload_key
  from .None import _ffi_api
label_desc: Use image node_id 2 for calling a global function with example usage: dump_record_to_string(inp, res) and returns: _ffi_api