def METHOD_NAME(self):
    from robocorp_ls_core.subprocess_wrapper import subprocess
    while True:
        entry = self.queue.get()
        if entry == self.DISPOSE:
            return
        spec_filename, target_json = entry
        env = os.environ.copy()
        # Make sure we're in the pythonpath.
        env["PYTHONPATH"] = os.pathsep.join(
            [
                os.path.dirname(os.path.dirname(robotframework_ls.__file__)),
                os.path.dirname(os.path.dirname(robocorp_ls_core.__file__)),
            ]
        )
        try:
            subprocess.check_output(
                [sys.executable, __file__, spec_filename, target_json],
                stderr=subprocess.STDOUT,
                stdin=subprocess.PIPE,
                env=env,
            )
        except subprocess.CalledProcessError as e:
            log.exception(
                "Error converting libspec to markdown: %s.\nReturn code: %s\nOutput:\n%s",
                spec_filename,
                e.returncode,
                e.output,
            )