code: def _pretty_table_str(v):
      from fate.arch.computing.api import is_table
  
      if is_table(v):
          return f"Table(partition={v.num_partitions})"
      else:
          return f"{type(v).__name__}"
  
imports: import hashlib
  import inspect
  import logging
  import time
  import typing
  from functools import wraps
label_desc: Use image node_id 5 for calling a global function with example usage: _pretty_table_str(v) and returns: str, v, str, type