code: def runTest(self):
      document_assembler = (
          DocumentAssembler()
          .setInputCol("text")
          .setOutputCol("document")
      )
  
      entity_ruler = (
          EntityRulerApproach()
          .setInputCols("document")
          .setOutputCol("entity")
          .setPatternsResource(self.path)
      )
  
      pipeline = Pipeline(stages=[document_assembler, entity_ruler])
      model = pipeline.fit(self.data)
      result = model.transform(self.data)
      self.assertTrue(result.select("entity").count() > 0)
  
file_path: spark-nlp/python/test/annotator/er/entity_ruler_test.py
imports: import os
  import unittest
  import pytest
  from sparknlp.annotator import *
  from sparknlp.base import *
  from test.util import SparkContextForTest
label_desc: Use image node_id 2 for calling the EntityRulerOneColumnTestSpec obj's underlying member method code with example usage: obj.runTest() without return types