<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_fpath_dir(self, fpath: str):
 """Creates directory for fpath."""

        os.makedirs(os.path.dirname(fpath), exist_ok=True)