code: def _short_repr(x):
      if isinstance(x, tuple):
          return f'({", ".join([_short_repr(y) for y in x])})'
      if isinstance(x, list):
          return f'[{", ".join([_short_repr(y) for y in x])}]'
      if not isinstance(x, Tensor):
          return str(x)
      if x.numel() <= 20 and x.ndim <= 1:
          return str(x)
      return f'{x.__class__.__name__} of size {"x".join([str(d) for d in x.shape])}'
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from .core import *
  from .load import *
  from .external import *
  from .transforms import *
  from inspect import isfunction, ismethod
  from .load import _collate_types
label_desc: Use image node_id 7 for calling a global function with example usage: _short_repr(x) and returns: x, str, str, str, str, str, str, str, str, str, str