code: def mock_y_scores_and_y_pred(first_names_mock, n: int = 10000):
      p_groups = BiasDetector(country="US").get_p_groups(
          first_names_mock
      )
      y_scores = np.array(
          [
              random.uniform(0, 1)
              if i % 10 != 0
              else random.uniform(p_groups.at[i, "male"], 1)
              for i in range(n)
          ]
      )
      y_scores = pd.Series(y_scores).rename("y_score")
      y_pred = pd.Series(y_scores >= 0.5).astype(int).rename("y_pred")
      return y_scores, y_pred
  
file_path: bias-detector/tests/mocks_generator.py
imports: import names
  import pandas
  import numpy
  import random
  import os
  import sys
  from bias_detector.BiasDetector import BiasDetector
label_desc: Use image node_id 5 for calling a global function with example usage: mock_y_scores_and_y_pred(first_names_mock, n) and returns: y_scores,  y_pred