parameters: (self, options)
return_statement: return True
docstring: Extract the two-level tuple representing the stencil neighborhood
          from the program IR to provide a tuple to StencilFunc.
docstring_summary: Extract the two-level tuple representing the stencil neighborhood
          from the program IR to provide a tuple to StencilFunc.
docstring_tokens: Extract the two - level tuple representing the stencil neighborhood from the program IR to provide a tuple to StencilFunc .
function: def _fix_stencil_neighborhood(self, options):
          """
          Extract the two-level tuple representing the stencil neighborhood
          from the program IR to provide a tuple to StencilFunc.
          """
          # build_tuple node with neighborhood for each dimension
          dims_build_tuple = get_definition(self.func_ir, options['neighborhood'])
          require(hasattr(dims_build_tuple, 'items'))
          res = []
          for window_var in dims_build_tuple.items:
              win_build_tuple = get_definition(self.func_ir, window_var)
              require(hasattr(win_build_tuple, 'items'))
              res.append(tuple(win_build_tuple.items))
          options['neighborhood'] = tuple(res)
          return True
function_tokens: def _fix_stencil_neighborhood ( self , options ) : # build_tuple node with neighborhood for each dimension dims_build_tuple = get_definition ( self . func_ir , options [ 'neighborhood' ] ) require ( hasattr ( dims_build_tuple , 'items' ) ) res = [ ] for window_var in dims_build_tuple . items : win_build_tuple = get_definition ( self . func_ir , window_var ) require ( hasattr ( win_build_tuple , 'items' ) ) res . append ( tuple ( win_build_tuple . items ) ) options [ 'neighborhood' ] = tuple ( res ) return True