in tfx_addons/mlmd_client/client.py [0:0]
def artifact_types(self): return {x.name: int(x.id) for x in self._mlmd.get_artifact_types()}