def __init__(self, package_request, use_current_env=False,<EOL>extra_package_requests=None, package_paths=None, stdout=None,<EOL>stderr=None, verbose=False, **context_kwargs):
self.package_request = package_request<EOL>self.use_current_env = use_current_env<EOL>self.extra_package_requests = extra_package_requests<EOL>self.stdout = stdout or sys.stdout<EOL>self.stderr = stderr or sys.stderr<EOL>self.verbose = verbose<EOL>self.context_kwargs = context_kwargs<EOL>self.package_paths = (config.packages_path if package_paths is None<EOL>else package_paths)<EOL>self.package = None<EOL>self.contexts = {}<EOL>self.timestamp = int(time.time())<EOL>if use_current_env:<EOL><INDENT>raise NotImplementedError<EOL><DEDENT>
Create a package tester.

        Args:
            package_request (str or `PackageRequest`): The package to test.
            use_current_env (bool): If True, run the test directly in the current
                rez-resolved environment, if there is one, and if it contains
                packages that meet the test's requirements.
            extra_package_requests (list of str or `PackageRequest`): Extra
                requests, these are appended to the test environment.
            package_paths: List of paths to search for pkgs, defaults to
                config.packages_path.
            stdout (file-like object): Defaults to sys.stdout.
            stderr (file-like object): Defaults to sys.stderr.
            verbose (bool): Verbose mode.
            context_kwargs: Extra arguments which are passed to the
                `ResolvedContext` instances used to run the tests within.
                Ignored if `use_current_env` is True.