code: def make_simple(*args, **kwargs):
      f = netcdf_file(*args, **kwargs)
      f.history = "Created for a test"
      f.createDimension("time", N_EG_ELS)
      time = f.createVariable("time", VARTYPE_EG, ("time",))
      time[:] = np.arange(N_EG_ELS)
      time.units = "days since 2008-01-01"
      f.flush()
      yield f
      f.close()
  
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 1 for calling a global function with example usage: make_simple() without return types