def METHOD_NAME(self, template, dashboard=False):
    items_buffers, items_write_sync = [], []
    for item in self.Items:
        if item[3][2] == 0:
            items_write_sync.append({
                "key": self.right_type(self.key, item[0]),
                "color": item[3][1],
                "drawtype": 2
            })
        if item[3][2] == 1:
            items_buffers.append({
                "key": self.right_type(self.key, item[0]),
                "color": item[3][1],
                "drawtype": 2
            })
    result = template.graph({
        "name": self.graph_name_buffers,
        "items": items_buffers
    }) + template.graph({
        "name": self.graph_name_ws,
        "items": items_write_sync
    })
    if not dashboard:
        return result
    else:
        return [{
            "dashboard": {"name": self.graph_name_buffers,
                          "page": ZbxTemplate.dashboard_page_overview["name"],
                          "size": ZbxTemplate.dashboard_widget_size_medium,
                          "position": 7}
        },
            {
                "dashboard": {"name": self.graph_name_ws,
                              "page": ZbxTemplate.dashboard_page_overview["name"],
                              "size": ZbxTemplate.dashboard_widget_size_medium,
                              "position": 8}
            }]