code: def test_duplicated_mask(keep, vals):
      # GH#48150
      ser = Series([1, 2, NA, NA, NA], dtype="Int64")
      result = ser.duplicated(keep=keep)
      expected = Series([False, False] + vals)
      tm.assert_series_equal(result, expected)
  
file_path: pandas/pandas/tests/series/methods/test_duplicated.py
imports: import numpy
  import pytest
  from pandas import NA, Categorical, Series
  import pandas._testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_duplicated_mask(keep, vals) without return types