Fix: #13420 - Add cache for nodes._check_initialpaths_for_relpath (#13422) (#13425)
* add lru_cache to nodes._check_initialpaths_for_relpath
update tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
(cherry picked from commit cfbe319d0c98302eae507622da8908be351fed2e)
Co-authored-by: Sashko <20253875+sashko1988@users.noreply.github.com>
Co-authored-by: Oleksandr Zavertniev <oleksandr.zavertniev@yellowbrick.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>