code: def test_rank_mixed_frame(self, float_string_frame):
      float_string_frame["datetime"] = datetime.now()
      float_string_frame["timedelta"] = timedelta(days=1, seconds=1)
  
      float_string_frame.rank(numeric_only=False)
      with pytest.raises(
          TypeError, match="not supported between instances of"
      ):
          float_string_frame.rank(axis=1)
  
imports: from datetime import datetime, timedelta
  import numpy
  import pytest
  from pandas._libs.algos import Infinity, NegInfinity
  from pandas import DataFrame, Index, Series
  import pandas._testing
label_desc: Use image node_id 4 for calling the TestRank obj's underlying member method code with example usage: obj.test_rank_mixed_frame(float_string_frame) without return types