code: def compute_buffer_size(eval_loader):
      """Calculate buffer size for different dataset.
  
      Args:
  
          eval_loader (Dataloader|None): The eval loader of corresponding dataset.
  
      Returns:
  
          buffer_size (int): Return suitable buffer size for different dataset.
  
      """
  
      buffer_size = -1
      for subdata in eval_loader:
          n_id = process_batch_data(subdata, only_nid=True)
          buffer_size = max(len(n_id), buffer_size)
      return buffer_size
  
file_path: PGL/apps/GNNAutoScale/utils.py
imports: import time
  import functools
  import numpy
  import paddle
  import pgl
  from pgl.utils.logger import log
label_desc: Use image node_id 7 for calling a global function with example usage: compute_buffer_size(eval_loader) and returns: buffer_size