code: def __init__(self):
      self.__decode_map = []
  
      for index_digit in range(0, 10, 1):
          list_file_digit_sample = (
              IMAGE_DIGIT_SAMPLES.GET_LIST_IMAGE_SAMPLES(index_digit)
          )
  
          for file_name in list_file_digit_sample:
              self.__decode_map.append(index_digit)
  
imports: from pyclustering.nnet.som import som, type_conn
  from pyclustering.samples.definitions import IMAGE_DIGIT_SAMPLES
  from pyclustering.utils import read_image, rgb2gray
  from tkinter import *
  from tkinter import messagebox
  import math
  import pickle
  import os
  import random
label_desc: Use image node_id 1 to create a new recognizer object  with example: obj = recognizer()