code: def _requires_ips(f):
      """decorator to ensure load_ips has been run before f"""
  
      def ips_loaded(*args, **kwargs):
          _load_ips()
          return f(*args, **kwargs)
  
      return ips_loaded
  
imports: import os
  import re
  import socket
  import subprocess
  from subprocess import Popen, PIPE
  from warnings import warn
label_desc: Use image node_id 4 for calling a global function with example usage: _requires_ips(f) and returns: ips_loaded, f