code: def mocked_trials_get(url, content):
      assert url.startswith(NNI_TRIAL_JOBS_URL)
      return MockResponseTrials(content)
  
imports: import os
  import sys
  import json
  import pytest
  from unittest.mock import patch
  from tempfile import TemporaryDirectory
  from recommenders.tuning.nni.nni_utils import get_experiment_status, check_experiment_status, check_stopped, check_metrics_written, get_trials, NNI_STATUS_URL, NNI_TRIAL_JOBS_URL
label_desc: Use image node_id 2 for calling a global function with example usage: mocked_trials_get(url, content) and returns: MockResponseTrials