code: def assert_simple_truths(ncfileobj):
      assert ncfileobj.history == b"Created for a test"
      time = ncfileobj.variables["time"]
      assert time.units == b"days since 2008-01-01"
      assert time.shape == (N_EG_ELS,)
      assert time[-1] == N_EG_ELS - 1
  
file_path: nibabel/nibabel/externals/tests/test_netcdf.py
imports: import os
  from os.path import join, dirname
  from io import BytesIO
  from glob import glob
  from contextlib import contextmanager
  import numpy
  import pytest
  from ..netcdf import netcdf_file
label_desc: Use image node_id 2 for calling a global function with example usage: assert_simple_truths(ncfileobj) without return types