class_docstr: The class wrapper the PGL graph, the class involve the funtions to implement struc2vec algorithm.
docstr: Choose the layer to random walk
docstr_tok: ["Choose","the","layer","to","random","walk"]
code: def choose_layer_to_walk(self, node, layer):
      """
      Choose the layer to random walk
      """
      random_value = random.random()
      higher_neigbours_nums = self.layer_node_weight_count[layer][node]
      prob = math.log(higher_neigbours_nums + math.e)
      prob = prob / (1.0 + prob)
      if random_value > prob:
          if layer > 0:
              layer = layer - 1
      else:
          if (
              layer + 1 in self.layer_message
              and node in self.layer_message[layer + 1]
          ):
              layer = layer + 1
      return layer
  
imports: import argparse
  import math
  import random
  import numpy
  import pgl
  from pgl import graph
  from pgl.graph_kernel import alias_sample_build_table
  from pgl.sample import alias_sample
  from data_loader import EdgeDataset
  from classify import train_lr_model
  from sklearn_classify import train_lr_l2_model
label_desc: Use image node_id 12 for calling the StrucVecGraph obj's underlying member method code with example usage: obj.choose_layer_to_walk(node, layer) and returns: layer