code: def test_recordio_splitter(tmpdir):
      test_file_path = tmpdir.join("recordio_test.txt")
      with test_file_path.open("wb") as f:
          for i in range(10):
              data = str(i).encode("utf-8")
              sagemaker.amazon.common._write_recordio(f, data)
  
      splitter = sagemaker.local.data.RecordIOSplitter()
      data = [x for x in splitter.split(str(test_file_path))]
  
      assert len(data) == 10
  
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 11 for calling a global function with example usage: test_recordio_splitter(tmpdir) without return types