Hi Kartik,
Can you elaborate further on your query? I may not able to understand you properly but if your source code is checked out to databricks repos and you want to execute your code for testing purposes , had you try setting up your repo dir into sys paths?
this can go into the top cell of your execution notebook before you're doing your imports.
import os, sys
# get current directory
path = os.getcwd()
print("Current Directory", path)
# prints parent directory
repo_dir = os.path.abspath(os.path.join(path, os.pardir))
# repo_dir = os.path.dirname(os.pardir())
sys.path.append(f"{repo_dir}/")
print(repo_dir)