code: def get_graph_labels_hetero(graph, target_node_type):
      if isinstance(graph, GeneralStaticGraph):
          if (
              "label" in graph.nodes[target_node_type].data
              and BACKEND == "dgl"
          ):
              return graph.nodes[target_node_type].data["label"]
          return None
      if BACKEND == "dgl" and "label" in graph.ndata[target_node_type]:
          return graph.ndata[target_node_type]["label"]
  
imports: import random
  import typing
  import torch
  import torch.backends.cudnn
  import numpy
  import pandas
  from ..backend import DependentBackend
  from ..data import Dataset
  from ..data.graph import GeneralStaticGraph
  from ..utils import get_logger
label_desc: Use image node_id 9 for calling a global function with example usage: get_graph_labels_hetero(graph, target_node_type) and returns: None, graph, graph