class_docstr: Helper class to test exception raising
class_docstr_tok: ["Helper","class","to","test","exception","raising"]
code: def __enter__(self):
      return self
  
imports: from __future__ import print_function
  import numpy
  import sys
  import os
  import inspect
  import gc
  import pytest
  import functools
  from packaging.version import Version
  from ..util.check_environment import has_backend
label_desc: Use image node_id 2 for calling the raises obj's underlying member method code with example usage: obj.__enter__() and returns: self