@staticmethod<EOL><INDENT>def get_imported_module_from_file(file_path):<DEDENT>
if p_compat.is_py3:<EOL><INDENT>imported_module = importlib.machinery.SourceFileLoader('<STR_LIT>', file_path).load_module()<EOL><DEDENT>elif p_compat.is_py2:<EOL><INDENT>imported_module = imp.load_source('<STR_LIT>', file_path)<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>return imported_module<EOL>
import module from python file path and return imported module