human
Complete this python program:
def _GetChartFactory(chart_class, display_class):
assistant
#Here is the Python code you requested.

    """Create a factory method for instantiating charts with displays.
    Returns a method which, when called, will create & return a chart with
    chart.display already populated.
    """
    def Inner(*args, **kwargs):
        chart = chart_class(*args, **kwargs)
        chart.display = display_class(chart)
        return chart
    return Inner