code: def ignore_invalid_float_warnings():
      """Ignore warnings generated for working with NaN/inf values.
  
      Numpy and dask sometimes don't like NaN or inf values in normal function
      calls. This context manager hides/ignores them inside its context.
  
      Examples:
          Use around numpy operations that you expect to produce warnings::
  
              with ignore_invalid_float_warnings():
                  np.nanmean(np.nan)
  
      """
      with np.errstate(invalid="ignore"), warnings.catch_warnings():
          warnings.simplefilter("ignore", RuntimeWarning)
          yield
  
imports: from __future__ import annotations
  import contextlib
  import datetime
  import logging
  import os
  import pathlib
  import warnings
  from contextlib import contextmanager
  from copy import deepcopy
  from typing import Literal, Mapping, Optional
  from urllib.parse import urlparse
  import dask.utils
  import numpy
  import xarray
  import yaml
  from yaml import BaseLoader, UnsafeLoader
  from satpy._compat import DTypeLike
label_desc: Use image node_id 30 for calling a global function with example usage: ignore_invalid_float_warnings() without return types