code: def profile_nan(hist):
      if hasattr(hist, "nanflow"):
          return hist.nanflow.entries
      elif hasattr(hist, "bins") and "NaN" in hist.bins:
          return hist.bins["NaN"].entries
      return 0
  
file_path: popmon/popmon/analysis/profiling/profiles.py
imports: import numpy
  from popmon.analysis.hist_numpy import get_2dgrid
  from popmon.base.registry import Registry
  from popmon.hist.hist_utils import sum_entries
  from popmon.stats import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: profile_nan(hist) and returns: int, hist, hist