code: def test_none_splitter(tmpdir):
      splitter = sagemaker.local.data.NoneSplitter()
  
      test_file_path = tmpdir.join("none_test.txt")
  
      with test_file_path.open("w") as f:
          f.write("this\nis\na\ntest")
  
      data = [x for x in splitter.split(str(test_file_path))]
      assert data == ["this\nis\na\ntest"]
  
      test_bin_file_path = tmpdir.join("none_test.bin")
  
      with test_bin_file_path.open("wb") as f:
          f.write(
              b"\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00C"
          )
  
      data = [x for x in splitter.split(str(test_bin_file_path))]
      assert data == [
          b"\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00C"
      ]
  
imports: from __future__ import absolute_import
  import sys
  import pytest
  from mock import patch, Mock
  import sagemaker.amazon
  import sagemaker.local.data
label_desc: Use image node_id 9 for calling a global function with example usage: test_none_splitter(tmpdir) without return types