code: def compute_discounted_max(beta, a):
      n = len(a)
  
      if beta not in dict_beta_discount or (
          len(dict_beta_discount[beta]) < n
      ):
          dict_beta_discount[beta] = np.exp(-beta * np.arange(n))
  
      return max(a * dict_beta_discount[beta][:n])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  from absl import app
  import numpy
  import scipy
  import sympy
  import core
label_desc: Use image node_id 13 for calling a global function with example usage: compute_discounted_max(beta, a) and returns: max