tfx.orchestration.portable.mlmd.context_lib.register_context_if_not_exists

Registers a context if not exist, otherwise returns the existing one.

This is a simplified wrapper around the method above which only takes context type and context name.

metadata_handler A handler to access MLMD store.
context_type_name The name of the context type.
context_name The name of the context.

An MLMD context.