code: def test_from_string_exception() -> None:
      """Tests that UID throws exception when invalid string is given."""
  
      with pytest.raises(ValueError):
          UID.from_string(value="Hello world")
  
file_path: PySyft/packages/syft/tests/syft/uid_test.py
imports: import uuid
  import pytest
  import syft
  from syft.serde.serialize import _serialize
  from syft.types.uid import UID
  from syft.types.uid import uuid_type
label_desc: Use image node_id 7 for calling a global function with example usage: test_from_string_exception() without return types