code: def test_str_object_to_bytes():
      value = UNICODE_STRING if py3k.PY3 else BYTES_STRING
      instance = _build_test_instance("__str__", value)
  
      returned = py3k.to_bytes(instance)
      _assert_strings_equal(BYTES_STRING, returned)
  
file_path: sumy/tests/test_utils/test_compat.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import pytest
  from sumy import _compat
label_desc: Use image node_id 5 for calling a global function with example usage: test_str_object_to_bytes() without return types