code: public static String visualize(View view) {
      Canvas canvas = new Canvas();
      view.draw(canvas);
      ShadowCanvas shadowCanvas = Shadow.extract(canvas);
      return shadowCanvas.getDescription();
    }
docs: Returns a textual representation of the appearance of the object.
  
  @param view the view to visualize
  @return Textual representation of the appearance of the object.