code: def test_pipe_failures(any_string_dtype):
      # #2119
      ser = Series(["A|B|C"], dtype=any_string_dtype)
  
      result = ser.str.split("|")
      expected = Series([["A", "B", "C"]], dtype=object)
      tm.assert_series_equal(result, expected)
  
      result = ser.str.replace("|", " ", regex=False)
      expected = Series(["A B C"], dtype=any_string_dtype)
      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 20 for calling a global function with example usage: test_pipe_failures(any_string_dtype) without return types