code: def scale_workers_with_core_pinning(scaled_num_workers):
      params = (("min_worker", str(scaled_num_workers)),)
      requests.put(
          "http://localhost:8081/models/resnet-18", params=params
      )
      response = requests.get("http://localhost:8081/models/resnet-18")
      return response
  
file_path: serve/test/pytest/test_example_intel_extension_for_pytorch.py
imports: import json
  import os
  import subprocess
  import pytest
  import requests
  import test_utils
  import torch
  from test_handler import run_inference_using_url_with_data
label_desc: Use image node_id 5 for calling a global function with example usage: scale_workers_with_core_pinning(scaled_num_workers) and returns: response