<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cmd_implementation(self, events_lib, top_level_cmd_name, subcmd_name, *args, **kwargs):
 """ calls for value substitution in the event json and returns the customized json as a string Parameters events_lib top_level_cmd_name: string the name of the service subcmd_name: string the name of the event under the service args: tuple any arguments passed in before kwargs kwargs: dict the keys and values for substitution in the json Returns ------- event: string returns the customized event json as a string """

        event = events_lib.generate_event(top_level_cmd_name, subcmd_name, kwargs)
        click.echo(event)
        return event