code: def test_contains_object_mixed():
      mixed = Series(
          np.array(
              [
                  "a",
                  np.nan,
                  "b",
                  True,
                  datetime.today(),
                  "foo",
                  None,
                  1,
                  2.0,
              ],
              dtype=object,
          )
      )
      result = mixed.str.contains("o")
      expected = Series(
          np.array(
              [
                  False,
                  np.nan,
                  False,
                  np.nan,
                  np.nan,
                  True,
                  None,
                  np.nan,
                  np.nan,
              ],
              dtype=np.object_,
          )
      )
      tm.assert_series_equal(result, expected)
  
imports: from datetime import datetime
  import re
  import numpy
  import pytest
  from pandas.errors import PerformanceWarning
  import pandas.util._test_decorators
  import pandas
  from pandas import Series, _testing
  from pandas.tests.strings import _convert_na_value, object_pyarrow_numpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_contains_object_mixed() without return types