code: def check_label(data_dir):
      fn = os.path.join(data_dir, "label.txt")
      d = np.loadtxt(fn, dtype=int)
      c = collections.Counter(d[:, 1])
      for k, v in c.most_common():
          print(k, v)
  
imports: import random
  import os
  import sys
  import collections
  import itertools
  import pickle
  import scipy.sparse
  import networkx
  import numpy
  from sklearn.cluster import SpectralClustering
  from sklearn import gaussian_process
  from scipy.optimize import minimize
  from bayes_opt import BayesianOptimization
label_desc: Use image node_id 14 for calling a global function with example usage: check_label(data_dir) without return types