[IMP][fix_unused_imports] add function to check relative imports

[IMP][fix_unused_imports] add function to check relative imports