code: def _get_pressure_level_condition(plevels_ds, pressure_levels):
      if pressure_levels is True:
          return None
      if len(pressure_levels) == 2:
          cond = (plevels_ds >= pressure_levels[0]) & (
              plevels_ds <= pressure_levels[1]
          )
      else:
          cond = plevels_ds == pressure_levels
      # convert dask-based DataArray to a computed numpy-based DataArray to
      # avoid unknown shapes of dask arrays when this condition is used for masking
      return cond.compute()
  
imports: import logging
  from collections import defaultdict
  import numpy
  import pandas
  import xarray
  from satpy.readers.netcdf_utils import NetCDF4FileHandler
  from satpy.readers.yaml_reader import FileYAMLReader
label_desc: Use image node_id 2 for calling a global function with example usage: _get_pressure_level_condition(plevels_ds, pressure_levels) and returns: cond, None