code: def test_map_simple_str_callables_same_as_astype(
      string_series, func, using_infer_string
  ):
      # test that we are evaluating row-by-row first
      # before vectorized evaluation
      result = string_series.map(func)
      expected = string_series.astype(
          str if not using_infer_string else "string[pyarrow_numpy]"
      )
      tm.assert_series_equal(result, expected)
  
imports: from collections import Counter, defaultdict
  from decimal import Decimal
  import math
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, bdate_range, date_range, isna, timedelta_range
  import pandas._testing
label_desc: Use image node_id 9 for calling a global function with example usage: test_map_simple_str_callables_same_as_astype(string_series, func, using_infer_string) without return types