code: def make_default_score_fn(fn_i: int) -> SCORE_FUNCTION_T:
      """
      Make ith score_fn (constructor of ith score)
      """
  
      def fn(user: np.ndarray, doc: np.ndarray) -> float:
          return doc[fn_i]
          # user = user ** (fn_i + 1)
          # doc = doc ** (fn_i + 1)
          # return np.inner(user, doc)
          # return user[fn_i] * doc[fn_i]
  
      return fn
  
imports: import logging
  from collections import OrderedDict
  from typing import Callable, Dict, List
  import gym
  import numpy
  import reagent.core.types
  import torch
  from reagent.core.dataclasses import dataclass
  from reagent.gym.envs import RecSim
  from reagent.gym.preprocessors.default_preprocessors import RecsimObsPreprocessor
  from scipy import stats
label_desc: Use image node_id 1 for calling a global function with example usage: make_default_score_fn(fn_i) and returns: fn, doc