code: def test_get_tag_item_Tiff():
      with rasterio.open("tests/data/cogeo.tif") as src:
          assert src.get_tag_item("IFD_OFFSET", "TIFF", bidx=1) == "8"
          assert (
              src.get_tag_item("IFD_OFFSET", "TIFF", bidx=1, ovr=0)
              == "1104"
          )
          assert (
              src.get_tag_item("IFD_OFFSET", "TIFF", bidx=1, ovr=1)
              == "1504"
          )
          assert not src.get_tag_item("IF", "TIFF", bidx=1)
          with pytest.raises(Exception):
              src.get_tag_item("IFD_OFFSET", "TIFF", ovr=1)
  
file_path: rasterio/tests/test_tag_item.py
imports: import logging
  import sys
  import pytest
  import rasterio
  from rasterio.errors import BandOverviewError
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_tag_item_Tiff() without return types