/Engine/Plugins/Importers/USDImporter/Source/USDUtilities/Public/USDConversionUtils.h
Travels up from Prim and returns true if we hit any invisible prim before we hit the stage pseudoroot. Does not checkPrim_ itself (orRootPrim_, so that you can just pass the PseudoRoot in most cases). Completely ignores whether non-UsdGeomImageable prims are visible or not and keeps travelling up.
namespace UsdUtils { bool UsdUtils::HasInvisibleParent ( const [UE::FUsdPrim](API\Plugins\UnrealUSDWrapper\UsdWrappers\FUsdPrim) & Prim, const [UE::FUsdPrim](API\Plugins\UnrealUSDWrapper\UsdWrappers\FUsdPrim) & RootPrim, double TimeCode ) }