code: def test_arg_for_errors_in_astype(self):
      # see GH#14878
      ser = Series([1, 2, 3])
  
      msg = (
          r"Expected value of kwarg 'errors' to be one of \['raise', "
          r"'ignore'\]\. Supplied value is 'False'"
      )
      with pytest.raises(ValueError, match=msg):
          ser.astype(np.float64, errors=False)
  
      ser.astype(np.int8, errors="raise")
  
imports: from datetime import datetime, timedelta
  from importlib import reload
  import string
  import sys
  import numpy
  import pytest
  from pandas._libs.tslibs import iNaT
  import pandas.util._test_decorators
  from pandas import NA, Categorical, CategoricalDtype, DatetimeTZDtype, Index, Interval, NaT, Series, Timedelta, Timestamp, cut, date_range, to_datetime
  import pandas._testing
label_desc: Use image node_id 2 for calling the TestAstypeAPI obj's underlying member method code with example usage: obj.test_arg_for_errors_in_astype() without return types