code: def print_cancast_table(ntypes):
      print("X", end=" ")
      for char in ntypes:
          print(char, end=" ")
      print()
      for row in ntypes:
          print(row, end=" ")
          for col in ntypes:
              if np.can_cast(row, col, "equiv"):
                  cast = "#"
              elif np.can_cast(row, col, "safe"):
                  cast = "="
              elif np.can_cast(row, col, "same_kind"):
                  cast = "~"
              elif np.can_cast(row, col, "unsafe"):
                  cast = "."
              else:
                  cast = " "
              print(cast, end=" ")
          print()
  
file_path: catboost/contrib/python/numpy/py3/numpy/testing/print_coercion_tables.py
imports: import numpy
  from collections import namedtuple
label_desc: Use image node_id 1 for calling a global function with example usage: print_cancast_table(ntypes) without return types