@cache<EOL>@patch_cli<EOL>def t_cli(version=None):
c = CliClient('<STR_LIT>', heartbeat_interval=<NUM_LIT:0>)<EOL>c.set_system_version(version)<EOL>c.get_agent()<EOL>prev = ResourceListCollection([get_sp_list_t0(c),<EOL>get_lun_list_t0(c),<EOL>get_disk_list_t0(c),<EOL>get_port_list_t0(c)])<EOL>curr = ResourceListCollection([get_sp_list_t1(c),<EOL>get_lun_list_t1(c),<EOL>get_disk_list_t1(c),<EOL>get_port_list_t1(c)])<EOL>curr.timestamp += timedelta(seconds=<NUM_LIT>)<EOL>c.add_metric_record(prev)<EOL>c.add_metric_record(curr)<EOL>return c<EOL>
get the test cli client

    :param with_stats: if true, returns a client with stats enabled.
    :param version: system version
    :return: test cli client