code: def test_corrwith_spearman_with_tied_data(self):
      # GH#48826
      pytest.importorskip("scipy")
      df1 = DataFrame(
          {
              "A": [1, np.nan, 7, 8],
              "B": [False, True, True, False],
              "C": [10, 4, 9, 3],
          }
      )
      df2 = df1[["B", "C"]]
      result = (df1 + 1).corrwith(df2.B, method="spearman")
      expected = Series([0.0, 1.0, 0.0], index=["A", "B", "C"])
      tm.assert_series_equal(result, expected)
  
      df_bool = DataFrame(
          {
              "A": [True, True, False, False],
              "B": [True, False, False, True],
          }
      )
      ser_bool = Series([True, True, False, True])
      result = df_bool.corrwith(ser_bool)
      expected = Series([0.57735, 0.57735], index=["A", "B"])
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas.util._test_decorators
  import pandas
  from pandas import DataFrame, Index, Series, date_range, isna
  import pandas._testing
label_desc: Use image node_id 12 for calling the TestDataFrameCorrWith obj's underlying member method code with example usage: obj.test_corrwith_spearman_with_tied_data() without return types