code: def scale_amplification(h, D, avg_d):
      """
      Amplification scaling function. log(D + 1) / d * h where d is the average of the ``log(D + 1)`` in the training set
  
      Parameters
      ----------
      h : torch.Tensor
          Input tensor.
      D : torch.Tensor
          Degree tensor.
      avg_d : dict
          Dictionary containing averages over the training set.
  
      Returns
      -------
      torch.Tensor
          Scaled input tensor.
      """
      return h * (np.log(D + 1) / avg_d["log"])
  
file_path: deepchem/deepchem/utils/graph_utils.py
imports: import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: scale_amplification(h, D, avg_d) and returns: unknown