code: def load_from_netcdf(filename):
      """Load a shaded image from NetCDF file.
  
      Parameters
      ----------
      filename: unicode
        The name of the file to load from.
  
      Returns
      -------
      img: xarray
        The loaded image.
  
      """
      filename = os.path.join(datadir, filename + ".nc")
      return xr.open_dataarray(filename)
  
imports: import os
  import xarray
  import datashader
  import pandas
  import numpy
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: load_from_netcdf(filename) and returns: xr