code: def get_notebook_iframe_srcdoc(
      config: Settings, profile: ProfileReport
  ) -> "HTML":
      """Get the IPython HTML object with iframe with the srcdoc attribute
  
      Args:
          config: Settings
          profile: The profile report object
  
      Returns:
          IPython HTML object.
      """
      from IPython.core.display import HTML
  
      width = config.notebook.iframe.width
      height = config.notebook.iframe.height
      src = html.escape(profile.to_html())
  
      iframe = f'<iframe width="{width}" height="{height}" srcdoc="{src}" frameborder="0" allowfullscreen></iframe>'
  
      return HTML(iframe)
  
file_path: ydata-profiling/src/ydata_profiling/report/presentation/flavours/widget/notebook.py
imports: import html
  import uuid
  from pathlib import Path
  from typing import TYPE_CHECKING, Union
  from ydata_profiling import ProfileReport
  from ydata_profiling.config import IframeAttribute, Settings
label_desc: Use image node_id 1 for calling a global function with example usage: get_notebook_iframe_srcdoc(config, profile) and returns: HTML