code: def _check_memory(list_img_3d):
      # We intentionally add an offset of memory usage to avoid non trustable
      # measures with memory_profiler.
      mem_offset = b"a" * 100 * 1024**2
      list(iter_check_niimg(list_img_3d))
      return mem_offset
  
imports: import os
  import re
  import tempfile
  from pathlib import Path
  import nibabel
  import numpy
  import pytest
  from nibabel import Nifti1Image
  from numpy.testing import assert_array_equal
  import nilearn
  from nilearn import _utils
  from nilearn._utils import niimg_conversions, testing
  from nilearn._utils.exceptions import DimensionError
  from nilearn._utils.niimg_conversions import iter_check_niimg
  from nilearn._utils.testing import assert_memory_less_than, with_memory_profiler
  from nilearn.image import get_data
label_desc: Use image node_id 13 for calling a global function with example usage: _check_memory(list_img_3d) and returns: mem_offset