code: def test_strip_lstrip_rstrip_mixed_object(method, exp):
      ser = Series(
          [
              "  aa  ",
              np.nan,
              " bb \t\n",
              True,
              datetime.today(),
              None,
              1,
              2.0,
          ]
      )
  
      result = getattr(ser.str, method)()
      expected = Series(
          exp + [np.nan, np.nan, None, np.nan, np.nan], dtype=object
      )
      tm.assert_series_equal(result, expected)
  
imports: from datetime import datetime, timedelta
  import numpy
  import pytest
  from pandas import DataFrame, Index, MultiIndex, Series
  import pandas._testing
  from pandas.core.strings.accessor import StringMethods
  from pandas.tests.strings import object_pyarrow_numpy
label_desc: Use image node_id 25 for calling a global function with example usage: test_strip_lstrip_rstrip_mixed_object(method, exp) without return types