code: def test_raises():
      code = """
  def single_function():
      raise Exception
  def top_function():
      def inner_function():
          raise NotImplementedError()
      inner_function()
      raise Exception
  def top_function_three():
      try:
          raise NotImplementedError()
      except NotImplementedError:
          pass
      raise Exception
      """
  
      r = get_raise_stmts(code, 0)  #  Lists in a simple Function
      assert len(list(r)) == 1
  
      r = get_raise_stmts(
          code, 1
      )  #  Doesn't Exceptions list in closures
      assert len(list(r)) == 1
  
      r = get_raise_stmts(code, 2)  #  Lists inside try-catch
      assert len(list(r)) == 2
  
imports: from textwrap import dedent
  import pytest
  from parso import parse
  from parso.python import tree
label_desc: Use image node_id 13 for calling a global function with example usage: test_raises() without return types