code: def is_filelike(obj):
      """Return whether ``obj`` is a file-like object."""
      return hasattr(obj, "read")
  
imports: import re
  import string
label_desc: Use image node_id 5 for calling a global function with example usage: is_filelike(obj) and returns: hasattr