code: def test_file_system_input_mode_invalid():
      with pytest.raises(ValueError) as excinfo:
          file_system_id = "fs-0a48d2a1"
          file_system_type = "EFS"
          directory_path = "tensorflow"
          file_system_access_mode = "p"
          FileSystemInput(
              file_system_id=file_system_id,
              file_system_type=file_system_type,
              directory_path=directory_path,
              file_system_access_mode=file_system_access_mode,
          )
      assert (
          str(excinfo.value)
          == "Unrecognized file system access mode: p. Valid values: ro, rw."
      )
  
file_path: sagemaker-python-sdk/tests/unit/test_inputs.py
imports: from __future__ import absolute_import
  import pytest
  from sagemaker import TrainingInput
  from sagemaker.inputs import FileSystemInput
label_desc: Use image node_id 8 for calling a global function with example usage: test_file_system_input_mode_invalid() without return types