code: def test_data_dir_3(tmpdir):
      kwargs = {
          "crs": {"init": "epsg:4326"},
          "transform": affine.Affine(0.2, 0, -114, 0, -0.2, 46),
          "count": 2,  # important: band count > 1
          "dtype": rasterio.uint8,
          "driver": "GTiff",
          "width": 10,
          "height": 10,
          "nodata": 1,
      }
  
      with rasterio.open(
          str(tmpdir.join("b.tif")), "w", **kwargs
      ) as dst:
          data = np.ones((2, 10, 10), dtype=rasterio.uint8)
          data[:, 0:6, 0:6] = 255
          dst.write(data)
  
      with rasterio.open(
          str(tmpdir.join("a.tif")), "w", **kwargs
      ) as dst:
          data = np.ones((2, 10, 10), dtype=rasterio.uint8)
          data[:, 4:8, 4:8] = 254
          dst.write(data)
  
      return tmpdir
  
imports: from io import StringIO
  import os
  import sys
  import textwrap
  from pathlib import Path
  import affine
  from click.testing import CliRunner
  import numpy
  from pytest import fixture
  import pytest
  import rasterio
  from rasterio.enums import Resampling
  from rasterio.merge import merge, MERGE_METHODS
  from rasterio.rio.main import main_group
  from rasterio.transform import Affine
label_desc: Use image node_id 3 for calling a global function with example usage: test_data_dir_3(tmpdir) and returns: tmpdir