code: def positive_int(s):
      i = None
      try:
          i = int(s)
      except ValueError:
          pass
      if not i or i < 1:
          raise argparse.ArgumentTypeError(
              "%r is not a positive integer" % s
          )
      return i
  
imports: import os
  import sys
  import argparse
  import logging
  import traceback
  from yaml import full_load, dump
  from milvus_benchmark.metrics.models.server import Server
  from milvus_benchmark.metrics.models.hardware import Hardware
  from milvus_benchmark.metrics.models.env import Env
  from milvus_benchmark.env import get_env
  from milvus_benchmark.runners import get_runner
  from milvus_benchmark.metrics import api
  from milvus_benchmark import config, utils
  from milvus_benchmark import parser
  from logs import log
  from logs.log import global_params
label_desc: Use image node_id 1 for calling a global function with example usage: positive_int(s) and returns: i