code: def test_from_csv(
      testcase,
      filename,
      filterClassBuilder,
      roundDecimals=2,
      maxLen=None,
  ):
      inputValues, expectedValues = load_test_csv(
          get_data_file_path(filename)
      )
      inputDS = dataseries.SequenceDataSeries(maxLen=maxLen)
      filterDS = filterClassBuilder(inputDS)
      for i in xrange(len(inputValues)):
          inputDS.append(inputValues[i])
          value = safe_round(filterDS[i], roundDecimals)
          expectedValue = safe_round(expectedValues[i], roundDecimals)
          testcase.assertEqual(value, expectedValue)
  
imports: import csv
  import os
  import shutil
  import subprocess
  import tempfile
  import unittest
  import matplotlib
  from six.moves import xrange
  from pyalgotrade import dataseries
label_desc: Use image node_id 11 for calling a global function with example usage: test_from_csv(testcase, filename, filterClassBuilder, roundDecimals, maxLen) without return types