code: def format_dict(d: dict[Any, Any]) -> str:
      return (
          str(d)
          .replace(" ", "")
          .replace("],", "],\n")
          .replace(":", ":\n")
          .replace("},", "},\n")
      )
  
file_path: arch/arch/unitroot/critical_values/simulation/shared.py
imports: from __future__ import annotations
  from collections.abc import Sequence
  from typing import Any, NamedTuple
  import numpy
  import pandas
  from scipy import stats
  from statsmodels.regression.linear_model import OLS, WLS
label_desc: Use image node_id 1 for calling a global function with example usage: format_dict(d) and returns: str