code: def test_na_at_i_end(test_data):
      data = test_data(SHAPE)
      last_i = np.shape(data)[0] - 1
      data = test_data(SHAPE, last_i, 3)
      actual = impy.locf(data, axis=1)
      data[last_i, 3] = data[last_i - 1, 3]
      assert np.array_equal(actual, data)
  
file_path: impyute/test/imputation/ts/test_locf.py
imports: import numpy
  import impyute
  from impyute.ops.testing import return_na_check
  from impyute.ops import error
label_desc: Use image node_id 4 for calling a global function with example usage: test_na_at_i_end(test_data) without return types