code: def __getattr__(self, attr):
      if attr == "tg":
          from .text_generation import TextGenerator
  
          params = multilingual_params(**self.tg_params)
          self.tg = TextGenerator(**params)
          return self.tg
      else:
          raise AttributeError
  
imports: import collections
  import itertools
  import string
  import numpy
  import re
  import copy
  import os
  import json
  import munch
  import pickle
  import csv
  from .viewer.template_editor import TemplateEditor
  from .multilingual import multilingual_params, get_language_code
label_desc: Use image node_id 3 for calling the Editor obj's underlying member method code with example usage: obj.__getattr__(attr) and returns: self