code: def get_infer_gpuid():
      cmd = "nvidia-smi"
      res = os.popen(cmd).readlines()
      if len(res) == 0:
          return None
      cmd = "env | grep CUDA_VISIBLE_DEVICES"
      env_cuda = os.popen(cmd).readlines()
      if len(env_cuda) == 0:
          return 0
      else:
          gpu_id = env_cuda[0].strip().split("=")[1]
          return int(gpu_id[0])
  
file_path: insightface/recognition/arcface_paddle/tools/inference.py
imports: import sys
  import os
  import cv2
  import time
  import json
  import argparse
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: get_infer_gpuid() and returns: None, int, int