code: def replace_div_id(s):
      uuid = re.search(r'<div id="([^"]*)"', s).groups()[0]
      return s.replace(uuid, "XXXX")
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_io/test_pathlib.py
imports: from unittest import mock
  import plotly.io
  from io import StringIO
  from pathlib import Path
  import re
  from unittest.mock import Mock
label_desc: Use image node_id 2 for calling a global function with example usage: replace_div_id(s) and returns: s