code: def id_generator(size=15, random_state=None):
      """Helper function to generate random div ids. This is useful for embedding
      HTML into ipython notebooks."""
      chars = list(string.ascii_uppercase + string.digits)
      return "".join(random_state.choice(chars, size, replace=True))
  
imports: from io import open
  import os
  import os.path
  import json
  import string
  import numpy
  from .exceptions import LimeError
  from sklearn.utils import check_random_state
label_desc: Use image node_id 1 for calling a global function with example usage: id_generator(size, random_state) and returns: str