code: def print_iteration(cls, *args):
      # args[3] is obj func, and args[4] is tr-radius. They should really be
      # floats. However, trust-constr typically provides a ndarray for these
      # values. We have to coerce them to floats, otherwise the string
      # formatting doesn't work.
      args = list(args)
      args[3] = float(args[3])
      args[4] = float(args[4])
  
      iteration_format = [
          "{{:{}}}".format(x) for x in cls.ITERATION_FORMATS
      ]
      fmt = "|" + "|".join(iteration_format) + "|"
      print(fmt.format(*args))
  
file_path: catboost/contrib/python/scipy/py3/scipy/optimize/_trustregion_constr/report.py
imports: from __future__ import annotations
  from typing import List
label_desc: Use image node_id 2 for calling the ReportBase obj's underlying member method code with example usage: obj.print_iteration(cls) without return types