<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_module_path(module):
 """return a directory path to a module"""

    return pathlib.Path(
        os.path.dirname(os.path.abspath(inspect.getfile(module))))