code: def test_OneOfOptionsField_allows_none_fails_if_multiple_fields_allow_none():
      with pytest.raises(ValueError):
  
          @dataclass
          class CustomTestSchema(schema_utils.BaseMarshmallowConfig):
              foo: Union[float, str] = schema_utils.OneOfOptionsField(
                  default=None,
                  description="",
                  field_options=[
                      schema_utils.PositiveInteger(
                          description="", default=1, allow_none=True
                      ),
                      schema_utils.List(list_type=int, allow_none=True),
                  ],
              )
  
file_path: ludwig/tests/ludwig/marshmallow/test_fields_misc.py
imports: from typing import Dict, Tuple, Union
  import pytest
  from marshmallow.exceptions import ValidationError
  from marshmallow_dataclass import dataclass
  from ludwig.config_validation.validation import get_validator, validate
  from ludwig.schema import utils
label_desc: Use image node_id 8 for calling a global function with example usage: test_OneOfOptionsField_allows_none_fails_if_multiple_fields_allow_none() without return types