code: def test_set_mem_nan_nodata():
      with MemoryFile() as mem, mem.open(
          driver="GTiff",
          width=1,
          height=1,
          count=1,
          dtype="float32",
          nodata=float("nan"),
      ) as src:
          assert numpy.isnan(src.nodata)
  
file_path: rasterio/tests/test_nodata.py
imports: import logging
  import pytest
  import re
  import subprocess
  import sys
  import numpy
  import rasterio
  from rasterio.io import MemoryFile
label_desc: Use image node_id 5 for calling a global function with example usage: test_set_mem_nan_nodata() without return types