code: def close_quietly(sock):
      try:
          sock.close()
      except OSError as oe:
          print(oe)
  
file_path: h2o-3/h2o-py/tests/testdir_misc/pyunit_log4j_cve.py
imports: import sys
  import socket
  import h2o
  from tests import pyunit_utils
  import time
  import threading
label_desc: Use image node_id 2 for calling a global function with example usage: close_quietly(sock) without return types