Mythril fails to import remotely and all-time searches in the local file system - to solve this I used Hardhat to compile my contract - and hardhat compiled contract.
Now I am stuck on How to run Mythril on the contract using Hardhat to compile the solidity file.
npx hardhat compile // this comiles contract
myth -a FILENAME.sol --execution-timeout 10 //
myth compiles file.sol using solc compiler and again gives import error - NOW HOW TO USE HARDHAT compiled solidity and RUN it on mythril.