code: def softmax(x, temperature=1.0):
      e_x = np.exp((x - np.max(x)) / temperature)
      return e_x / e_x.sum()
  
file_path: ludwig/ludwig/utils/math_utils.py
imports: import math
  from typing import List
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: softmax(x, temperature) and returns: unknown