code: def constfn(val):
      """
      Create a function that returns a constant
      It is useful for learning rate schedule (to avoid code duplication)
  
      :param val: (float)
      :return: (function)
      """
  
      def func(_):
          return val
  
      return func
  
label_desc: Use image node_id 3 for calling a global function with example usage: constfn(val) and returns: func, val