code: def __write_tanh_table(self, model, path):
      MAX_VALUE = 4
      MIN_VALUE = 0
  
      table_name = "tanh_table"
      table_size = self.__get_table_size(model, "tanh")
  
      h_file = open(f"{path}/{table_name}.tb", "w")
      h_file.write(self.__get_table_header(table_name, table_size))
  
      sep = ""
      for i in range(table_size):
          in_val = (
              i * (MAX_VALUE - MIN_VALUE) / float(table_size)
              + (MAX_VALUE - MIN_VALUE) / (float(table_size) * 2)
              + MIN_VALUE
          )
          real_val = np.tanh(in_val)
          if real_val >= 0:
              h_file.write(sep + str(real_val))
              sep = ", "
  
      h_file.write("};\n")
      h_file.close()
  
imports: import glob
  import os
  import tarfile
  from collections import OrderedDict
  from shutil import copyfile, copytree, rmtree
  import numpy
  import yaml
  from hls4ml.backends import get_backend
  from hls4ml.model.layers import Conv1D, Conv2D, Conv2DBatchnorm, Dense
  from hls4ml.utils.fixed_point_utils import FixedPointEmulator, ceil_log2, uint_to_binary
  from hls4ml.writer.writers import Writer
label_desc: Use image node_id 21 for calling the QuartusWriter obj's underlying member method code with example usage: obj.__write_tanh_table(model, path) without return types