code: def test_create_s3_mount_without_directory_prefix_fails():
      with pytest.raises(
          ValueError, match="S3 mounts must end in a trailing slash"
      ):
          Mount(source="s3://foo/bar", mount_path="/foo")
  
      with pytest.raises(
          ValueError, match="S3 mounts must end in a trailing slash"
      ):
          Mount(source="s3://foo", mount_path="/foo")
  
imports: import pytest
  from lightning.app.storage.mount import Mount
label_desc: Use image node_id 3 for calling a global function with example usage: test_create_s3_mount_without_directory_prefix_fails() without return types