docstr: Creates tf.lookup.StaticHashTable for encoding labels.
docstr_tok: ["Creates","tf.lookup.StaticHashTable","for","encoding","labels","."]
code: def create_lookup_table(self):
      """Creates tf.lookup.StaticHashTable for encoding labels."""
      keys = list(self.class_to_idx.keys())
      vals = list(self.class_to_idx.values())
  
      keys_tensor = keys  # tf.constant(keys)
      vals_tensor = vals  # tf.constant(vals)
  
      table_init = tf.lookup.KeyValueTensorInitializer(
          keys_tensor, vals_tensor
      )
  
      self._lookup_class_to_idx = tf.lookup.StaticHashTable(
          table_init, -1
      )
  
imports: import math
  import os
  import pathlib
  from glob import glob
  from typing import List, Optional, Union
  import matplotlib.pyplot
  import tensorflow
  from chitra.image.tf_image import read_image, resize_image
  from .core import remove_dsstore
  from .utility.tf_utils import get_basename
label_desc: Use image node_id 6 for calling the Clf obj's underlying member method code with example usage: obj.create_lookup_table() without return types