code: def get_id(obj, suffix="", prefix="el", warn_on_invalid=True):
      """Get a unique id for the object"""
      if not suffix:
          suffix = ""
      if not prefix:
          prefix = ""
  
      objid = prefix + str(os.getpid()) + str(id(obj)) + suffix
  
      if warn_on_invalid and not html_id_ok(objid):
          warnings.warn(
              '"{0}" is not a valid html ID. This may cause problems'
          )
  
      return objid
  
file_path: pyLDAvis/notebooks/pyLDAvis/utils.py
imports: import json
  import os
  import re
  import shutil
  import warnings
  import numpy
  import pyLDAvis.urls
label_desc: Use image node_id 2 for calling a global function with example usage: get_id(obj, suffix, prefix, warn_on_invalid) and returns: objid