code: def init_server_logging(server_ip, server_port, verbose=True):
      """Sets ups Python Tools for Visual Studio debug (ptvsd) server.
  
      Adapted from Hugging Face template: https://github.com/huggingface/transformers/blob/ac99217
      e92c43066af7ec96554054d75532565d7/templates/adding_a_new_example_script/run_xxx.py#L569-L576
  
      """
      if server_ip and server_port:
          # Distant debugging, see:
          # https://code.visualstudio.com/docs/python/debugging#_attach-to-a-local-script
          # noinspection PyUnresolvedReferences,PyPackageRequirements
          import ptvsd
  
          if verbose:
              print("Waiting for debugger attach")
          ptvsd.enable_attach(
              address=(server_ip, server_port), redirect_output=True
          )
          ptvsd.wait_for_attach()
  
imports: import json
  import numpy
  import os
  import random
  import time
  import torch
  from dataclasses import dataclass
  from typing import Any
  import jiant.utils.python.io
  import jiant.utils.zlog
label_desc: Use image node_id 2 for calling a global function with example usage: init_server_logging(server_ip, server_port, verbose) without return types