code: def test_generalized_corrwith():
      df1 = pd.DataFrame(
          {
              "blue": [1, 2, 3, 4, 5],
              "yellow": [1, 2, 2, 4, -1],
              "red": [9, 2, 9, 9, 9],
          }
      )
      df2 = pd.DataFrame(
          {"cat": [1, 2, 3, 4, 5], "dog": [1, 0, 0, 4, 5]}
      )
      result = generalized_corrwith(
          df1, df2, lambda x, y: pearsonr(x, y)[0]
      )
      assert_that(result.loc["blue", "cat"], close_to(1.0, 0.01))
      assert_that(
          result.index, contains_exactly("blue", "yellow", "red")
      )
      assert_that(result.columns, contains_exactly("cat", "dog"))
  
imports: import pandas
  from hamcrest import assert_that, close_to, contains_exactly, equal_to
  from scipy.stats import pearsonr
  from deepchecks.utils.dataframes import generalized_corrwith, is_float_column
label_desc: Use image node_id 1 for calling a global function with example usage: test_generalized_corrwith() without return types