<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cd(cd_path, create=False):
 """cd to target dir when running in this block :param cd_path: dir to cd into :param create: create new dir if destination not there Usage:: """

    oricwd = os.getcwd()
    if create:
        mkdir(cd_path)
    try:
        os.chdir(cd_path)
        yield
    finally:
        os.chdir(oricwd)