You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: dep_create.go
    path of file: ./repos/cockroach/pkg/sql/schemachanger/scplan/internal/rules/release_23_2
    
    the code of the file until where you have to start completion: // Copyright 2023 The Cockroach Authors.
//
// Use of this software is governed by the Business Sour
    
func init() {
	registerDepRule(
		"descriptor existence precedes dependents",
		scgraph.Precedence,
		"relation", "dependent",
		func(from, to NodeVars) rel.Clauses {
			return rel.Clauses{
				from.TypeFilter(rulesVersionKey, isDescriptor),
				to.TypeFilter(rulesVersionKey, Not(isDescriptor)),
				JoinOnDescID(from, to, "relation-id"),
				StatusesToPublicOrTransient(from, scpb.Status_DESCRIPTOR_ADDED, to, scpb.Status_PUBLIC),
			}
		},
	)

	registerDepRule(
		"dependents exist before descriptor becomes public",
		scgraph.Precedence,
		"dependent", "relation",
		func(from, to NodeVars) rel.Clauses {
			return rel.Clauses{
				from.TypeFilter(rulesVersionKey, Not(isDescriptor)),
				to.TypeFilter(rulesVersionKey, isDescriptor),
				JoinOnDescID(from, to, "relation-id"),
				StatusesToPublicOrTransient(from, scpb.Status_PUBLIC, to, scpb.Status_PUBLIC),
			}
		},
	)
}