code: def filter_idhtml(value: Any) -> str:
      """Sanitizes a string to be a valid HTML id attribute.
  
      Args:
          value (Any): Value to use as ID.
  
      Returns:
          str: Sanitized (HTML safe) ID.
      """
      return re.sub(r"\W", "-", str(value)).lower()
  
file_path: tslumen/tslumen/jinja_utils.py
imports: from math import ceil, log10, floor
  from typing import List, Optional, Any, Tuple
  from datetime import datetime
  import re
  import numpy
  import pandas
  import jinja2
label_desc: Use image node_id 7 for calling a global function with example usage: filter_idhtml(value) and returns: re