code: def getAPIS(snapshot_file):
      MANAGEMENT_API = "http://127.0.0.1:8081"
      INFERENCE_API = "http://127.0.0.1:8080"
  
      with open(snapshot_file, "r") as fp:
          lines = fp.readlines()
      for line in lines:
          line = line.rstrip("\n")
          if "management_address" in line:
              MANAGEMENT_API = line.split("=")[1]
          if "inference_address" in line:
              INFERENCE_API = line.split("=")[1]
  
      return (MANAGEMENT_API, INFERENCE_API)
  
imports: import ast
  import json
  import logging
  import os
  import numpy
  import pytest
  import requests
  import test_utils
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: getAPIS(snapshot_file) and returns: MANAGEMENT_API,  INFERENCE_API