code: def get_frame(parse: str) -> Node:
      annotation = Annotation(parse)
      frame = CompositionalMetricReporter.tree_to_metric_node(
          annotation.tree
      )
      return frame
  
file_path: pytext/pytext/metric_reporters/tests/compositional_metric_reporter_test.py
imports: from unittest import TestCase
  from pytext.data.data_structures.annotation import Annotation
  from pytext.metric_reporters.compositional_metric_reporter import CompositionalMetricReporter
  from pytext.metrics.intent_slot_metrics import Node, Span
label_desc: Use image node_id 1 for calling a global function with example usage: get_frame(parse) and returns: frame