code: def test_set_raises_error_when_path_conflicts(self) -> None:
      with pytest.raises(
          AssetCardError,
          match=r"^The asset card 'test-card' cannot have a field named 'field1.field2' due to path conflict at 'field1'\.$",
      ):
          self.card.field("field1").field("field2").set("foo")
  
imports: from os import PathLike
  from pathlib import Path
  import pytest
  from fairseq2.assets import AssetCard, AssetCardError, AssetCardFieldNotFoundError
label_desc: Use image node_id 23 for calling the TestAssetCard obj's underlying member method code with example usage: obj.test_set_raises_error_when_path_conflicts() without return types