code: def lrc(
      f1: np.array,
      f2: np.array,
      n1: Union[int, np.array],
      n2: Union[int, np.array],
      conf_level: float = 0.95,
      correct: bool = True,
      alternative: str = "two sided",
  ) -> np.array:
      assert len(f1) == len(f2)
      assert np.all(f1 + f2 >= 1)
      score_df = lrc_score_df(
          f1=f1,
          f2=f2,
          n1=n1,
          n2=n2,
          conf_level=conf_level,
          correct=correct,
          alternative=alternative,
      )
      return score_df.Score.values
  
file_path: scattertext/scattertext/termscoring/lrc.py
imports: from typing import Union
  import numpy
  import pandas
  from scipy.stats import beta
  from scattertext import CorpusBasedTermScorer
label_desc: Use image node_id 1 for calling a global function with example usage: lrc(f1, f2, n1, n2, conf_level, correct, alternative) and returns: score_df