code: def set_variable_path(var_path, desc, sname):
      """Replace variable default path if applicable and ensure trailing separator."""
      vpath = desc.get("path", var_path)
      # Ensure we have a trailing separator:
      if vpath != "" and vpath[-1] != "/":
          vpath += "/"
      if sname != "":
          vpath += sname + "/"
      return vpath
  
imports: from datetime import datetime
  import numpy
  import xarray
  from satpy.tests.reader_tests.test_netcdf_utils import FakeNetCDF4FileHandler
label_desc: Use image node_id 13 for calling a global function with example usage: set_variable_path(var_path, desc, sname) and returns: vpath