code: def maybe_num_nodes(edges):
      """Guess the number of nodes from edges
  
      Args:
  
          edges: numpy.ndarry of paddle.Tensor
  
      Return:
  
          An int or paddle.Tensor about the number of nodes.
      """
      if isinstance(edges, Variable):
          return paddle.max(edges) + 1
  
      if len(edges) == 0:
          return 0
  
      if check_is_tensor(edges):
          return paddle.max(edges) + 1
      else:
          return np.max(edges) + 1
  
file_path: PGL/pgl/utils/helper.py
imports: import numpy
  import paddle
  from paddle.common_ops_import import Variable
  from paddle.framework import core
  from pgl.utils import op
label_desc: Use image node_id 5 for calling a global function with example usage: maybe_num_nodes(edges) and returns: unknown, int, unknown, unknown