def skip(msg="<STR_LIT>", **kwargs):
__tracebackhide__ = True<EOL>allow_module_level = kwargs.pop("<STR_LIT>", False)<EOL>if kwargs:<EOL><INDENT>raise TypeError("<STR_LIT>".format(sorted(kwargs)))<EOL><DEDENT>raise Skipped(msg=msg, allow_module_level=allow_module_level)<EOL>
Skip an executing test with the given message.

This function should be called only during testing (setup, call or teardown) or
during collection by using the ``allow_module_level`` flag.  This function can
be called in doctests as well.

:kwarg bool allow_module_level: allows this function to be called at
    module level, skipping the rest of the module. Default to False.

.. note::
    It is better to use the :ref:`pytest.mark.skipif ref` marker when possible to declare a test to be
    skipped under certain conditions like mismatching platforms or
    dependencies.
    Similarly, use the ``# doctest: +SKIP`` directive (see `doctest.SKIP
    <https://docs.python.org/3/library/doctest.html#doctest.SKIP>`_)
    to skip a doctest statically.