code: def mock_add_trial_job():
      responses.add(
          responses.POST,
          "http://localhost:8080/api/v1/nni/trial-jobs",
          json=[{"trialJobStatus": "SUCCEEDED", "trialJobNumber": 1}],
          status=201,
          content_type="application/json",
      )
  
file_path: nni/test/ut/tools/nnictl/mock/restful_server.py
imports: import responses
label_desc: Use image node_id 11 for calling a global function with example usage: mock_add_trial_job() without return types