code: def run_pytest():
      print("## Started regression pytests")
      os.chdir(os.path.join(REPO_ROOT, "test", "pytest"))
      cmd = (
          "python -m grpc_tools.protoc -I ../../third_party/google/rpc --proto_path=../../frontend/server/src/main/resources/proto/"
          " --python_out=. --grpc_python_out=. ../../frontend/server/src/main/resources/proto/inference.proto"
          " ../../frontend/server/src/main/resources/proto/management.proto"
      )
      status = os.system(cmd)
      if status != 0:
          print("Could not generate gRPC client stubs")
          sys.exit(1)
      cmd = "python -m pytest -v ./"
      print(
          f"## In directory: {os.getcwd()} | Executing command: {cmd}"
      )
      status = os.system(cmd)
      rm_file("*_pb2*.py", True)
      return status
  
file_path: serve/ts_scripts/regression_utils.py
imports: import os
  import sys
  import tempfile
  import urllib.request
  from ts_scripts.shell_utils import rm_file
label_desc: Use image node_id 2 for calling a global function with example usage: run_pytest() and returns: status