# Buggy code
def give_helpful_hints(self, node_names, backup=False, playbook=None):
    self.emitter.echo("some relevant info:")
    self.emitter.echo(f' config file: "{self.config_path}"')
    self.emitter.echo(f" inventory file: {self.inventory_path}", color="yellow")
    if self.config.get("keypair_path"):
        self.emitter.echo(
            f" keypair file: {self.config['keypair_path']}", color="yellow"
        )

    if playbook:
        self.emitter.echo(
            " If you like, you can run the same playbook directly in ansible with the following:"
        )
        self.emitter.echo(f'\tansible-playbook -i "{self.inventory_path}" "{playbook}"')

    self.emitter.echo(" You may wish to ssh into your running hosts:")
    for node_name, host_data in [h for h in self.get_all_hosts() if h[0] in node_names]:
        dep = CloudDeployers.get_deployer(host_data["provider"])(
            self.emitter,
            self.stakeholder,
            self.config["stakeholder_config_file"],
            pre_config=self.config,
            namespace=self.namespace,
            network=self.network,
        )
        self.emitter.echo(f"\t{dep.format_ssh_cmd(host_data)}", color="yellow")
    if backup:
        self.emitter.echo(
            " *** Local backups containing sensitive data have been created. ***",
            color="red",
        )
        self.emitter.echo(
            f" Backup data can be found here: {self.config_dir}/remote_worker_backups/"
        )


# Traceback (TypeError)
Traceback (most recent call last):
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/bin/nucypher", line 33, in <module>
sys.exit(load_entry_point('nucypher', 'console_scripts', 'nucypher')())
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/k/Git/nucypher/nucypher/cli/options.py", line 167, in wrapper
return func(**kwargs)
File "/home/k/Git/nucypher/nucypher/cli/options.py", line 167, in wrapper
return func(**kwargs)
File "/home/k/Git/nucypher/nucypher/cli/options.py", line 167, in wrapper
return func(**kwargs)
TypeError: add_for_stake() got an unexpected keyword argument 'config_file'

# Fixed code
def give_helpful_hints(self, node_names, backup=False, playbook=None):
    self.emitter.echo("some relevant info:")
    self.emitter.echo(f' config file: "{self.config_path}"')
    self.emitter.echo(f" inventory file: {self.inventory_path}", color="yellow")
    if self.config.get("keypair_path"):
        self.emitter.echo(
            f" keypair file: {self.config['keypair_path']}", color="yellow"
        )

    if playbook:
        self.emitter.echo(
            " If you like, you can run the same playbook directly in ansible with the following:"
        )
        self.emitter.echo(f'\tansible-playbook -i "{self.inventory_path}" "{playbook}"')

    self.emitter.echo(" You may wish to ssh into your running hosts:")
    for node_name, host_data in [h for h in self.get_all_hosts() if h[0] in node_names]:
        dep = CloudDeployers.get_deployer(host_data["provider"])(
            self.emitter,
            self.stakeholder,
            self.config["stakeholder_config_file"],
            pre_config=self.config,
            namespace=self.namespace,
            network=self.network,
        )
        self.emitter.echo(f"\t{dep.format_ssh_cmd(host_data)}", color="yellow")
    if backup:
        self.emitter.echo(
            " *** Local backups containing sensitive data may have been created. ***",
            color="red",
        )
        self.emitter.echo(
            f" Backup data can be found here: {self.config_dir}/remote_worker_backups/"
        )