class_docstr: Counter with support for nan values.
docstr: Generate items without nans. Stores the nan counts separately.
docstr_tok: ["Generate","items","without","nans",".","Stores","the","nan","counts","separately","."]
code: def _generate_items(self, items):
      """Generate items without nans. Stores the nan counts separately."""
      for item in items:
          if not is_scalar_nan(item):
              yield item
              continue
          if not hasattr(self, "nan_count"):
              self.nan_count = 0
          self.nan_count += 1
  
imports: from collections import Counter
  from contextlib import suppress
  from typing import NamedTuple
  import numpy
  from .None import is_scalar_nan
label_desc: Use image node_id 2 for calling the _NaNCounter obj's underlying member method code with example usage: obj._generate_items(items) without return types