code: def test_map_type_inference():
      s = Series(range(3))
      s2 = s.map(lambda x: np.where(x == 0, 0, 1))
      assert issubclass(s2.dtype.type, np.integer)
  
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 19 for calling a global function with example usage: test_map_type_inference() without return types