code: def ip_validator(
      arg_value,
      pat=re.compile(
          r"^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$"
      ),
  ):
      if not pat.match(arg_value):
          raise argparse.ArgumentTypeError("Invalid IP address")
      return arg_value
  
label_desc: Use image node_id 1 for calling a global function with example usage: ip_validator(arg_value, pat) and returns: arg_value