code: def test_line_splitter(tmpdir):
      test_file_path = tmpdir.join("line_test.txt")
  
      with test_file_path.open("w") as f:
          for i in range(10):
              f.write("%s\n" % i)
  
      splitter = sagemaker.local.data.LineSplitter()
      data = [x for x in splitter.split(str(test_file_path))]
      assert len(data) == 10
      for i in range(10):
          assert data[i] == "%s\n" % str(i)
  
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 10 for calling a global function with example usage: test_line_splitter(tmpdir) without return types