code: def test_get_p_groups(self):
      p_groups = bias_detector.get_p_groups(
          first_names=first_names_mock,
          last_names=last_names_mock,
          zip_codes=zip_codes_mock,
      )
      assert p_groups.at[0, "male"] == 0.0
      assert p_groups.at[0, "female"] == 1.0
      assert p_groups.at[0, "white"] == 0.22120724490233212
      p_groups = bias_detector.get_p_groups(
          first_names=first_names_mock, zip_codes=zip_codes_mock
      )
      assert p_groups.at[0, "male"] == 0.0
      assert p_groups.at[0, "female"] == 1.0
      assert p_groups.at[0, "white"] == 0.37026898144716697
      p_groups = bias_detector.get_p_groups(
          first_names=first_names_mock, last_names=last_names_mock
      )
      assert p_groups.at[0, "male"] == 0.0
      assert p_groups.at[0, "female"] == 1.0
      assert p_groups.at[0, "white"] == 0.5408381893515636
  
file_path: bias-detector/tests/test_BiasDetector.py
imports: import pytest
  from bias_detector.BiasDetector import *
  from .common import *
  from bias_detector.BiasMetric import BiasMetric
label_desc: Use image node_id 1 for calling the TestBiasDetector obj's underlying member method code with example usage: obj.test_get_p_groups() without return types