<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def format_json(config):
 """format config for lambda exec """

    with open(config) as fh:
        print(json.dumps(yaml.safe_load(fh.read()), indent=2))