code: def render(renderable: RenderableType, no_wrap: bool = False) -> str:
      console = Console(
          width=100,
          file=io.StringIO(),
          color_system="truecolor",
          legacy_windows=False,
      )
      console.print(renderable, no_wrap=no_wrap)
      output = replace_link_ids(console.file.getvalue())
      return output
  
imports: import io
  import re
  from rich.console import Console, RenderableType
label_desc: Use image node_id 2 for calling a global function with example usage: render(renderable, no_wrap) and returns: output