code: def __init__(self, path: str):
      data = _GTNDataSource(path, "gtn-acm")[0]
      if _backend.DependentBackend.is_dgl():
          super(GTNACMDataset, self).__init__(
              [
                  GeneralStaticGraphGenerator.create_homogeneous_static_graph(
                      {
                          "feat": getattr(data, "x"),
                          "label": getattr(data, "y"),
                          "pos": getattr(data, "pos"),
                          "train_mask": getattr(data, "train_mask"),
                          "val_mask": getattr(data, "val_mask"),
                          "test_mask": getattr(data, "test_mask"),
                      },
                      getattr(data, "edge_index"),
                  )
              ]
          )
      elif _backend.DependentBackend.is_pyg():
          super(GTNACMDataset, self).__init__(
              [
                  GeneralStaticGraphGenerator.create_homogeneous_static_graph(
                      {
                          "x": getattr(data, "x"),
                          "y": getattr(data, "y"),
                          "pos": getattr(data, "pos"),
                          "train_mask": getattr(data, "train_mask"),
                          "val_mask": getattr(data, "val_mask"),
                          "test_mask": getattr(data, "test_mask"),
                      },
                      getattr(data, "edge_index"),
                  )
              ]
          )
  
imports: import os
  import os.path
  import shutil
  import pickle
  import numpy
  import torch
  import typing
  from autogl.data import Data, download_url, InMemoryStaticGraphSet
  from autogl.data.graph import GeneralStaticGraphGenerator
  from ._dataset_registry import DatasetUniversalRegistry
  from ._data_source import OnlineDataSource
  from ..None import backend
label_desc: Use image node_id 1 to create a new GTNACMDataset object from inherited base classes: InMemoryStaticGraphSet with example: obj = GTNACMDataset(path)