code: def get_random_metric(random_state=1):
      random_state = sklearn.utils.check_random_state(random_state)
  
      def _random(d1, d2):
          return random_state.random_sample()
  
      return _random
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_random_metric(random_state) and returns: _random, random_state