code: def scope_function():
      # turn off auto forward mode
      nn.set_auto_forward(False)
  
      # clear all parameters
      nn.clear_parameters()
  
      # clear default graph
      nn.graph_def.reset_default_graph()
  
      # keep context
      ctx = nn.get_current_context()
  
      yield
  
      # restore context
      nn.set_default_context(ctx)
  
imports: from __future__ import print_function
  import pytest
  import os
  import nnabla
label_desc: Use image node_id 1 for calling a global function with example usage: scope_function() without return types