def create_timelion(job, args):
        """
        Create a Kibana Timelion Visualization based on args from reqparse

        """
        assert args['type'] in Kibana.TIMELION
        if args['type'] == 'Time':
            vis_states, times = Kibana._create_time_visualization(job, args)
        else:
            assert args['type'] == 'Timer'
            vis_states, times = Kibana._create_timer_visualization(job, args)

        # a generator, rison-ify and replace
        vis_states = (
            Kibana._regex_process(vs, Kibana.RISON_REPLACEMENT)
            for vs in map(prison.dumps, vis_states)
        )
        return [
            os.path.join(Envs.KIBANA_ADDRESS,
                         Kibana.BASIC_QUERY.format(type='timelion',
                                                   start_time=start,
                                                   end_time=end,
                                                   vis_state=vis_state))
            for (start, end), vis_state in zip(times, vis_states)
        ]

        Create a Kibana Timelion Visualization based on args from reqparse

        
web_console_v2/api/fedlearner_webconsole/utils/kibana.py