code: def test_correlation_ratio():
      cat_features = ["fName", "lName", "sName"]
      df.loc[:, cat_features] = df.loc[:, cat_features].apply(
          lambda x: pd.factorize(x)[0]
      )
      c_lname_age = correlation_methods.correlation_ratio(
          df["lName"], df["Age"]
      )
      c_lname_size = correlation_methods.correlation_ratio(
          df["lName"], df["Size"]
      )
      assert_that(c_lname_age, close_to(0.28867, 0.001))
      assert_that(c_lname_size, close_to(0.995, 0.001))
  
      c_lname_age = correlation_methods.correlation_ratio(
          df["lName"], df["Age"], [False, True, True, False, False]
      )
      assert_that(c_lname_age, close_to(0, 0.001))
  
      c_sname_age = correlation_methods.correlation_ratio(
          df["sName"], df["Age"]
      )
      c_sname_size = correlation_methods.correlation_ratio(
          df["sName"], df["Size"]
      )
      assert_that(
          c_sname_age, close_to(0, 0.00001)
      )  # sName groups all age values to a single group
      assert_that(c_sname_size, close_to(0, 0.00001))
  
imports: import pandas
  from hamcrest import assert_that, close_to
  from deepchecks.utils import correlation_methods
label_desc: Use image node_id 4 for calling a global function with example usage: test_correlation_ratio() without return types