class_docstr: Raised when a validation error occurs.
class_docstr_tok: ["Raised","when","a","validation","error","occurs","."]
docstr: Format a list of problems with a global config variable into human-readable output.
  
  Parameters
  ----------
  config : str
      Name of the global configuration variable of concern. Prepended to the output.
  problems: list[str]
      A list of strings, each one a distinct problem with that config variable.
  
  Returns
  -------
  str :
      A human-readable string suitable for console, listing the problems as bullet points.
docstr_tok: ["Format","a","list","of","problems","with","a","global","config","variable","into","human-readable","output",".","Parameters","--","--","--","--","--","config",":","str","Name","of","the","global","configuration","variable","of","concern",".","Prepended","to","the","output",".","problems",":","list","[","str","]","A","list","of","strings",",","each","one","a","distinct","problem","with","that","config","variable",".","Returns","--","--","--","-","str",":","A","human-readable","string","suitable","for","console",",","listing","the","problems","as","bullet","points","."]
code: def format_problems(config: str, problems: typing.List[str]) -> str:
      """Format a list of problems with a global config variable into human-readable output.
  
      Parameters
      ----------
      config : str
          Name of the global configuration variable of concern. Prepended to the output.
      problems: list[str]
          A list of strings, each one a distinct problem with that config variable.
  
      Returns
      -------
      str :
          A human-readable string suitable for console, listing the problems as bullet points.
      """
      formatted = []
      for p in problems:
          assert isinstance(p, str), f"problems element not a str: {p}"
          formatted.append(
              "\n".join(
                  textwrap.wrap(
                      f"{config}: {p}",
                      width=80,
                      initial_indent=" * ",
                      subsequent_indent="   ",
                  )
              )
          )
  
      return "\n".join(formatted)
  
file_path: tvm/python/gen_requirements.py
imports: import argparse
  import collections
  import os
  import re
  import sys
  import textwrap
  import typing
label_desc: Use image node_id 1 for calling the ValidationError obj's underlying member method code with example usage: obj.format_problems(config, problems) and returns: str