code: def test_ir_calibrate(c07_bt_creator, clip_negative_radiances):
      """Test IR calibration."""
      res = c07_bt_creator(
          clip_negative_radiances=clip_negative_radiances
      )
      clipped_ir = 134.68753 if clip_negative_radiances else np.nan
      expected = np.array(
          [
              clipped_ir,
              304.97037,
              332.22778,
              354.6147,
              374.08688,
              391.58655,
              407.64786,
              422.60635,
              436.68802,
              np.nan,
          ]
      )
      data_np = _get_and_check_array(res, np.float32)
      _check_area(res)
      _check_dims_and_coords(res)
      np.testing.assert_allclose(
          data_np[0, :10], expected, equal_nan=True, atol=1e-04
      )
  
      # make sure the attributes from the file are in the data array
      assert "scale_factor" not in res.attrs
      assert "_FillValue" not in res.attrs
      assert res.attrs["standard_name"] == "toa_brightness_temperature"
      assert res.attrs["long_name"] == "Brightness Temperature"
  
imports: from __future__ import annotations
  from datetime import datetime
  from pathlib import Path
  from typing import Any, Callable
  from unittest import mock
  import dask
  import dask.array
  import numpy
  import numpy.typing
  import pytest
  import xarray
  from pytest_lazyfixture import lazy_fixture
  from satpy import DataQuery
  from satpy.readers.abi_l1b import NC_ABI_L1B
  from satpy.readers.yaml_reader import FileYAMLReader
  from satpy.utils import ignore_pyproj_proj_warnings
label_desc: Use image node_id 16 for calling a global function with example usage: test_ir_calibrate(c07_bt_creator, clip_negative_radiances) without return types