code: def test_bounds(
      width,
      height,
      transform,
      expected_bounds,
      image_file_with_custom_size_and_transform,
  ):
      filepath = image_file_with_custom_size_and_transform(
          width, height, transform
      )
      with rasterio.open(filepath) as dataset:
          assert_bounding_box_equal(expected_bounds, dataset.bounds)
  
file_path: rasterio/tests/test_dataset.py
imports: import math
  from pathlib import Path
  from unittest.mock import MagicMock
  import pytest
  import rasterio
  from rasterio.coords import BoundingBox
  from rasterio.enums import Compression
  from rasterio.errors import DatasetAttributeError, RasterioIOError
  from rasterio.transform import Affine
  from .conftest import assert_bounding_box_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_bounds(width, height, transform, expected_bounds, image_file_with_custom_size_and_transform) without return types