def METHOD_NAME(mat, name=None, logger=None, to_str=False):
  if isinstance(mat, np.ndarray):
    info_str = "<Array>{}[{}]: max:{}, min:{}, sum:{}".format(
        '' if not name else name, mat.shape, mat.max(), mat.min(), mat.sum())
  else:
    info_str = "<Non_Array>{}:{}".format('' if not name else name, mat)
  if to_str:
    return info_str
  else:
    log_or_print(info_str, logger=logger)