code: def __str__(self):
      type_str = "File" if self.is_file else "Sandbox resource"
      return "{}({})".format(type_str, self.path)
  
imports: from __future__ import absolute_import
  import re
  import sys
  import copy
  import logging
  from .None import tools
  from datetime import date, datetime
  import enum
  import six
label_desc: Use image node_id 2 for calling the ExternalDataInfo obj's underlying member method code with example usage: obj.__str__() and returns: str