code: def _arg_repr(arg):
      """Get a useful (and not too large) represetation of an argument."""
      r = repr(arg)
      max = 40
      if len(r) > max:
          if hasattr(arg, "shape"):
              r = "array:" + "x".join([repr(s) for s in arg.shape])
          else:
              r = r[: max - 3] + "..."
      return r
  
file_path: vispy/vispy/gloo/gl/__init__.py
imports: from __future__ import division
  import os
  from ...util import config, logger
  from ._constants import *
  from ._proxy import BaseGLProxy
  from .None import gl2
label_desc: Use image node_id 4 for calling a global function with example usage: _arg_repr(arg) and returns: r