code: def pandas_error(code, **kwargs):
      """
      Copy of the numpydoc error function, since ERROR_MSGS can't be updated
      with our custom errors yet.
      """
      return (code, ERROR_MSGS[code].format(**kwargs))
  
imports: from __future__ import annotations
  import argparse
  import doctest
  import importlib
  import json
  import os
  import pathlib
  import subprocess
  import sys
  import tempfile
  import matplotlib
  import matplotlib.pyplot
  from numpydoc.docscrape import get_doc_object
  from numpydoc.validate import Validator, validate
label_desc: Use image node_id 1 for calling a global function with example usage: pandas_error(code) and returns: code,  ERROR_MSGS