code: def get_attributes(_obj) -> list:
      """Get attributes of the class."""
      attributes = [
          attribute
          for attribute in dir(_obj)
          if not attribute.startswith("__")
          and not callable(getattr(_obj, attribute))
      ]
      return attributes
  
file_path: dgl/python/dgl/graphbolt/internal/utils.py
imports: import hashlib
  import json
  import os
  import shutil
  from typing import List, Union
  import numpy
  import pandas
  import torch
  from numpy.lib.format import read_array_header_1_0, read_array_header_2_0
label_desc: Use image node_id 7 for calling a global function with example usage: get_attributes(_obj) and returns: attributes