code: def _center_text(text: str, width: int) -> str:
      """
      Utility that will add spaces on the left and right of a text to make it centered for a given width.
  
      Args:
          text (`str`): The text to center.
          width (`int`): The desired length of the result.
  
      Returns:
          `str`: A text of length `width` with the original `text` in the middle.
      """
      text_length = 2 if text == "✅" or text == "❌" else len(text)
      left_indent = (width - text_length) // 2
      right_indent = width - text_length - left_indent
      return " " * left_indent + text + " " * right_indent
  
file_path: transformers/utils/check_table.py
imports: import argparse
  import collections
  import os
  import re
  from typing import List
  from transformers.utils import direct_transformers_import
label_desc: Use image node_id 3 for calling a global function with example usage: _center_text(text, width) and returns: unknown