code: def read_node_label_hetero(raw_dir):
      df = pd.read_csv(osp.join(raw_dir, "nodetype-has-label.csv.gz"))
      label_dict = {}
      for nodetype in df.keys():
          has_label = df[nodetype].values[0]
          if has_label:
              label_dict[nodetype] = pd.read_csv(
                  osp.join(
                      raw_dir,
                      "node-label",
                      nodetype,
                      "node-label.csv.gz",
                  ),
                  compression="gzip",
                  header=None,
              ).values
  
      if len(label_dict) == 0:
          raise RuntimeError("No node label file found.")
  
      return label_dict
  
file_path: ogb/ogb/io/read_graph_raw.py
imports: import pandas
  import os.path
  import os
  import numpy
  from ogb.utils.url import decide_download, download_url, extract_zip
  from tqdm.auto import tqdm
label_desc: Use image node_id 6 for calling a global function with example usage: read_node_label_hetero(raw_dir) and returns: label_dict