code: def _only_once(f):
      """decorator to only run a function once"""
      f.called = False
  
      def wrapped(**kwargs):
          if f.called:
              return
          ret = f(**kwargs)
          f.called = True
          return ret
  
      return wrapped
  
imports: import os
  import re
  import socket
  import subprocess
  from subprocess import Popen, PIPE
  from warnings import warn
label_desc: Use image node_id 3 for calling a global function with example usage: _only_once(f) and returns: wrapped, ret