code: def test_struct_field_errors(data):
      got = cudf.Series(data)
  
      with pytest.raises(KeyError):
          got.struct.field("notWithinFields")
  
      with pytest.raises(IndexError):
          got.struct.field(100)
  
imports: import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.core.dtypes import StructDtype
  from cudf.testing._utils import DATETIME_TYPES, TIMEDELTA_TYPES, assert_eq
label_desc: Use image node_id 16 for calling a global function with example usage: test_struct_field_errors(data) without return types