code: def test_fields_errors():
      my_simple = MySimpleSerializable(
          _id="1", _ref_val=MySimpleSerializable(_id="2")
      )
      my_serializeble = MySerializable(_oneof_val=my_simple)
  
      with pytest.raises(TypeError) as exc_info:
          my_simple._int_val = "10"
      assert "_int_val" in str(exc_info.value)
  
      del my_simple._ref_val
      with pytest.raises(AttributeError):
          _ = my_simple._ref_val
  
      del my_simple._id
      with pytest.raises(AttributeError):
          _ = my_simple._id
  
      assert my_simple._int_val == 1000
      assert my_simple._list_val == []
  
      del my_serializeble._oneof_val
      with pytest.raises(AttributeError):
          _ = my_serializeble._oneof_val
  
      my_serializeble._ref_val2 = MySimpleSerializable(_id="3")
      del my_serializeble._ref_val2
      with pytest.raises(AttributeError):
          _ = my_serializeble._ref_val2
  
      with pytest.raises(TypeError):
          my_serializeble._ref_val = my_simple
  
      with pytest.raises(TypeError):
          my_serializeble._oneof_val = 1
  
      with pytest.raises(AttributeError):
          del my_serializeble._oneof_val
  
imports: import importlib
  import os
  from collections import namedtuple
  from datetime import timezone
  import numpy
  import pandas
  import pytest
  from ....core import EntityData
  from ....utils import no_default
  from ...None import serialize, deserialize
  from ..None import Serializable, FieldTypes, IdentityField, BoolField, AnyField, Int8Field, Int16Field, Int32Field, Int64Field, UInt8Field, UInt16Field, UInt32Field, UInt64Field, Float16Field, Float32Field, Float64Field, Complex64Field, Complex128Field, StringField, BytesField, KeyField, NDArrayField, Datetime64Field, Timedelta64Field, DataTypeField, IndexField, SeriesField, DataFrameField, IntervalArrayField, SliceField, FunctionField, NamedTupleField, TZInfoField, ListField, TupleField, DictField, ReferenceField, OneOfField
label_desc: Use image node_id 4 for calling a global function with example usage: test_fields_errors() without return types