<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def import_from_cwd(module, imp=None, package=None):
 """Import module, but make sure it finds modules located in the current directory. Modules located in the current directory has precedence over modules located in `sys.path`. """

    if imp is None:
        imp = importlib.import_module
    with cwd_in_path():
        return imp(module, package=package)