code: def get_extract_metrics(
      pred_lns: List[str],
      tgt_lns: List[str],
      label_constraint: RecordSchema,
      decoding_format="tree",
  ):
      predict_parser = get_predict_parser(
          decoding_schema=decoding_format,
          label_constraint=label_constraint,
      )
      return eval_pred(
          predict_parser=predict_parser,
          gold_list=tgt_lns,
          pred_list=pred_lns,
      )
  
imports: from typing import List
  from ..extraction.record_schema import RecordSchema
  from ..extraction.predict_parser import get_predict_parser, PredictParser
  from ..extraction.scorer import Metric, RecordMetric, OrderedRecordMetric
label_desc: Use image node_id 2 for calling a global function with example usage: get_extract_metrics(pred_lns, tgt_lns, label_constraint, decoding_format) and returns: eval_pred