code: def _is_bytes_like(obj):
      """
      Check whether obj behaves like a bytes object.
      """
      try:
          obj + b""
      except (TypeError, ValueError):
          return False
      return True
  
imports: from __future__ import division, absolute_import, print_function
  import sys
  import numpy
  import numpy.core.numeric
  from numpy.compat import asbytes, asunicode, bytes, basestring
label_desc: Use image node_id 3 for calling a global function with example usage: _is_bytes_like(obj) and returns: True, False