def METHOD_NAME(self, template, dashboard=False):
    items_checkpoints, items_checkpoints_write_sync = [], []
    for item in self.Items:
        if item[3][2] == 0:
            items_checkpoints.append({
                "key": self.right_type(self.key, item[1]),
                "color": item[3][1],
                "delay": self.Interval,
                "drawtype": 2
            })
        if item[3][2] == 1:
            items_checkpoints_write_sync.append({
                "key": self.right_type(self.key, item[1]),
                "color": item[3][1],
                "delay": self.Interval,
                "drawtype": 2
            })
    result = template.graph({
        "name": self.graph_name_count,
        "items": items_checkpoints
    }) + template.graph({
        "name": self.graph_name_ws,
        "items": items_checkpoints_write_sync
    })
    if not dashboard:
        return result
    else:
        return [{
            "dashboard": {"name": "PostgreSQL Checkpoints: Count (in hour)",
                          "page": ZbxTemplate.dashboard_page_overview["name"],
                          "size": ZbxTemplate.dashboard_widget_size_medium,
                          "position": 9}
        },
            {
                "dashboard": {"name": "PostgreSQL Checkpoints: Write/Sync",
                              "page": ZbxTemplate.dashboard_page_overview["name"],
                              "size": ZbxTemplate.dashboard_widget_size_medium,
                              "position": 10}
            }]