code: def predict(self, data):
      return self.rules[data]
  
file_path: textflint/textflint/generation/transformation/UT/ocr.py
imports: import random
  from ...transformation import WordSubstitute
label_desc: Use image node_id 2 for calling the OcrRules obj's underlying member method code with example usage: obj.predict(data) and returns: self