code: def test_load_stage_with_metrics_and_plots(
      dvc, stage_data, lock_data, typ
  ):
      stage_data[typ] = stage_data.pop("outs")
      dvcfile = load_file(dvc, PROJECT_FILE)
      stage = StageLoader.load_stage(
          dvcfile, "stage-1", stage_data, lock_data
      )
  
      assert stage.outs[0].def_path == "bar"
      assert stage.outs[0].hash_info == HashInfo("md5", "bar_checksum")
  
imports: import os
  from copy import deepcopy
  from itertools import chain
  import pytest
  from dvc.dvcfile import PROJECT_FILE, load_file
  from dvc.stage import PipelineStage, create_stage
  from dvc.stage.loader import StageLoader
  from dvc.stage.serialize import split_params_deps
  from dvc_data.hashfile.hash_info import HashInfo
label_desc: Use image node_id 16 for calling a global function with example usage: test_load_stage_with_metrics_and_plots(dvc, stage_data, lock_data, typ) without return types