<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def safe_mkdir_for(path, clean=False):
 """Ensure that the parent directory for a file is present. If it's not there, create it. If it is, no-op. """

  safe_mkdir(os.path.dirname(path), clean=clean)