code: def _generate_id(size):
      letters_and_numbers = string.ascii_letters
      for num in range(10):
          letters_and_numbers += str(num)
      letters_and_numbers += str(num)
      id_str = ""
      for _ in range(size):
          id_str += random.choice(list(letters_and_numbers))
  
      return id_str
  
imports: import copy
  import random
  import re
  import string
  import warnings
  import _plotly_utils.exceptions
  from chart_studio import exceptions
  from chart_studio.config import get_config
label_desc: Use image node_id 2 for calling a global function with example usage: _generate_id(size) and returns: id_str