code: def _check_valid_range(data_arr, test_valid_range):
      # valid_range is popped out of data_arr.attrs when it is applied
      assert "valid_range" not in data_arr.attrs
      assert data_arr.data.min() >= test_valid_range[0]
      assert data_arr.data.max() <= test_valid_range[1]
  
imports: from __future__ import annotations
  import os
  from datetime import datetime
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from satpy._config import config_search_paths
  from satpy.dataset import DataID
  from satpy.readers import load_reader
  from satpy.readers.yaml_reader import FileYAMLReader
label_desc: Use image node_id 11 for calling a global function with example usage: _check_valid_range(data_arr, test_valid_range) without return types