code: def _constfn(val):
      """
      Wrap as function
      """
  
      def f(_):
          return val
  
      return f
  
imports: import copy
  import logging
  import numpy
  from gym import spaces
  from schema import Schema, Optional
  import nni
  from nni import ClassArgsValidator
  from nni.tuner import Tuner
  from nni.utils import OptimizeMode, extract_scalar_reward
  from .model import Model
  from .util import set_global_seeds
  from .policy import build_lstm_policy
label_desc: Use image node_id 1 for calling a global function with example usage: _constfn(val) and returns: f, val