code: def test_notgeoref_warning():
      with rasterio.MemoryFile() as mem:
          with mem.open(
              driver="GTiff",
              width=10,
              height=10,
              dtype="uint8",
              count=1,
          ) as src:
              pass
          with pytest.warns(NotGeoreferencedWarning):
              with mem.open() as dst:
                  pass
  
file_path: rasterio/tests/test_warnings.py
imports: import rasterio
  from rasterio.errors import NodataShadowWarning, NotGeoreferencedWarning
  from affine import Affine
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_notgeoref_warning() without return types