code: def calc_r(y_i, x, y):
      return np.log(
          calc_pr(y_i, x, y, True) / calc_pr(y_i, x, y, False)
      )
  
file_path: ktrain/ktrain/text/models.py
imports: from ..None import utils
  from ..imports import *
  from .None import preprocessor
label_desc: Use image node_id 4 for calling a global function with example usage: calc_r(y_i, x, y) and returns: np