code: def test_get_code():
      """Use the same code that the parser also generates, to compare"""
      s = '''"""a docstring"""
  class SomeClass(object, mixin):
      def __init__(self):
          self.xy = 3.0
          """statement docstr"""
      def some_method(self):
          return 1
      def yield_method(self):
          while hasattr(self, 'xy'):
              yield True
          for x in [1, 2]:
              yield x
      def empty(self):
          pass
  class Empty:
      pass
  class WithDocstring:
      """class docstr"""
      pass
  def method_with_docstring():
      """class docstr"""
      pass
  '''
      assert parse(s).get_code() == s
  
file_path: catboost/contrib/python/parso/py3/tests/test_get_code.py
imports: import difflib
  import pytest
  from parso import parse
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_code() without return types