code: def test_next_instruction_is_function_or_class():
      text = """@pytest.mark.parametrize('py_file',
      [py_file for py_file in list_notebooks('../src/jupytext') + list_notebooks('.') if
                                       py_file.endswith('.py')])
  def test_no_metadata_when_py_is_pep8(py_file):
      pass
  """
      assert next_instruction_is_function_or_class(text.splitlines())
  
file_path: jupytext/tests/unit/test_pep8.py
imports: from nbformat.v4.nbbase import new_code_cell, new_notebook
  from jupytext import read, reads, writes
  from jupytext.compare import compare
  from jupytext.pep8 import cell_ends_with_code, cell_ends_with_function_or_class, cell_has_code, next_instruction_is_function_or_class, pep8_lines_between_cells
label_desc: Use image node_id 1 for calling a global function with example usage: test_next_instruction_is_function_or_class() without return types