<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_input_container(_container, cfg):
 """Save the input for the container in the configurations."""

    if not _container:
        return False
    if _container.exists():
        cfg["container"]["input"] = str(_container)
        return True
    return False