code: def test_where_numeric_with_string():
      # GH 9280
      s = Series([1, 2, 3])
      w = s.where(s > 1, "X")
  
      assert not is_integer(w[0])
      assert is_integer(w[1])
      assert is_integer(w[2])
      assert isinstance(w[0], str)
      assert w.dtype == "object"
  
      w = s.where(s > 1, ["X", "Y", "Z"])
      assert not is_integer(w[0])
      assert is_integer(w[1])
      assert is_integer(w[2])
      assert isinstance(w[0], str)
      assert w.dtype == "object"
  
      w = s.where(s > 1, np.array(["X", "Y", "Z"]))
      assert not is_integer(w[0])
      assert is_integer(w[1])
      assert is_integer(w[2])
      assert isinstance(w[0], str)
      assert w.dtype == "object"
  
imports: import numpy
  import pytest
  from pandas._config import using_pyarrow_string_dtype
  from pandas.core.dtypes.common import is_integer
  import pandas
  from pandas import Series, Timestamp, date_range, isna
  import pandas._testing
label_desc: Use image node_id 14 for calling a global function with example usage: test_where_numeric_with_string() without return types