code: def check_if_ip(ip_str):
      try:
          socket.inet_aton(ip_str)
          return True
      except socket.error:
          return False
  
imports: import argparse
  import socket
  from os import path
  from subprocess import run
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: check_if_ip(ip_str) and returns: True, False