code: def indent(text: str, n: int = 2, ch: str = " ") -> str:
      """Indent all the lines in a given block of text by a specified amount.
  
      Args:
          text (str) :
              The text to indent
  
          n (int, optional) :
              The amount to indent each line by (default: 2)
  
          ch (char, optional) :
              What character to fill the indentation with (default: " ")
  
      """
      padding = ch * n
      return "\n".join(padding + line for line in text.split("\n"))
  
file_path: bokeh/src/bokeh/util/strings.py
imports: from __future__ import annotations
  import logging
  import re
  from typing import Any, Iterable, overload
  from urllib.parse import quote_plus
label_desc: Use image node_id 1 for calling a global function with example usage: indent(text, n, ch) and returns: str