ctx.toolchains["//pkg:my_toolchain_type"]. If the toolchain was optional and no toolchain was resolved, this will return None.ctx.toolchains["//pkg:my_toolchain_type"]. If the toolchain was optional and no toolchain was resolved, this will return None.