code: def open_datatree(filename):
      """Open a datatree."""
      datasets = {}
      for resolution in [1000, 4000, 8000]:
          datasets[str(resolution)] = open_dataset(filename, resolution)
      dt = DataTree.from_dict(datasets)
      dt.attrs = dt["1000"].attrs
      return dt
  
imports: from contextlib import suppress
  from datetime import datetime
  from functools import cached_property
  import dask.array
  import numpy
  import xarray
  from satpy.utils import import_error_helper
  from satpy.readers.file_handlers import BaseFileHandler
label_desc: Use image node_id 6 for calling a global function with example usage: open_datatree(filename) and returns: dt