class_docstr: Raises an error when given key is of invalid datatype.
code: def __init__(self, hash_data):
      self.prefix = (
          "\nFAILURE TO GENERATE DATASET: Invalid key type detected"
      )
      self.err_msg = (
          f"\nFound Key {hash_data} of type {type(hash_data)}"
      )
      self.suffix = "\nKeys should be either str, int or bytes type"
      super().__init__(f"{self.prefix}{self.err_msg}{self.suffix}")
  
file_path: datasets/src/datasets/keyhash.py
imports: from typing import Union
  from huggingface_hub.utils import insecure_hashlib
label_desc: Use image node_id 1 to create a new InvalidKeyError object from inherited base classes: Exception with example: obj = InvalidKeyError(hash_data)