def METHOD_NAME(framework, config):
    """ Defines default setup_cmd and _setup_cmd, interpolate commands if necessary.
    The default values are `None`.
    In case a setup_cmd is defined, the original definition is saved to `_setup_cmd`.
    The new `setup_cmd` will be a list of commands, where each command has the
    directories, package manager and python binary interpolated.
    `_setup_cmd` will be used for setup inside containers.
    `setup_cmd` will be used when running locally (or on an Amazon image).
    """
    if "setup_cmd" not in framework:
        framework._setup_cmd = None
        framework.setup_cmd = None
    else:
        framework._setup_cmd = framework.setup_cmd
        if isinstance(framework.setup_cmd, str):
            framework.setup_cmd = [framework.setup_cmd]
        framework.setup_cmd = [
            cmd.format(pip="{pip}", py="{py}", **config.common_dirs)
            for cmd in framework.setup_cmd
        ]