@staticmethod
    def _warn_unsafe_extraction_path(path):
        if os.name == 'nt' and not path.startswith(os.environ['windir']):
            # On Windows, permissions are generally restrictive by default
            #  and temp directories are not writable by other users, so
            #  bypass the warning.
            return
        mode = os.stat(path).st_mode
        if mode & stat.S_IWOTH or mode & stat.S_IWGRP:
            msg = ("%s is writable by group/others and vulnerable to attack "
                "when "
                "used with get_resource_filename. Consider a more secure "
                "location (set with .set_extraction_path or the "
                "PYTHON_EGG_CACHE environment variable)." % path)
            warnings.warn(msg, UserWarning)
Creates an activity by invoking "activity_func" with the given args.
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/_vendor/pkg_resources/__init__.py/ResourceManager._warn_unsafe_extraction_path--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/op/create_prospective_op.py/CreateProspectiveOperation._CreateActivity