code: def is_nan_or_inf(value):
      return is_nan(value) or np.isinf(value)
  
imports: import os
  import socket
  from contextlib import closing
  import logging
  import queue
  import threading
  from typing import Optional
  import numpy
  from ray.air.constants import _ERROR_REPORT_TIMEOUT
label_desc: Use image node_id 3 for calling a global function with example usage: is_nan_or_inf(value) and returns: unknown