def METHOD_NAME(session, name, description, show_toolkit, organisation_id, tool_code_link):
    # Check if the toolkit exists
    toolkit = session.query(Toolkit).filter(Toolkit.name == name,
                                            Toolkit.organisation_id == organisation_id).first()
    if toolkit:
        # Update the existing toolkit
        toolkit.name = name
        toolkit.description = description
        toolkit.show_toolkit = show_toolkit
        toolkit.organisation_id = organisation_id
        toolkit.tool_code_link = tool_code_link
    else:
        # Create a new toolkit
        toolkit = Toolkit(
            name=name,
            description=description,
            show_toolkit=show_toolkit,
            organisation_id=organisation_id,
            tool_code_link=tool_code_link
        )
        session.add(toolkit)
    session.commit()
    session.flush()
    return toolkit