class_docstr: Types of accelerators.
class_docstr_tok: ["Types","of","accelerators","."]
code: def validate(cls, key):
      if key not in cls.all():
          raise ValueError(
              "Invalid accelerator key provided: %s." % key
          )
  
file_path: cloud/src/python/tensorflow_cloud/core/machine_config.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import enum
  from .None import gcp
label_desc: Use image node_id 2 for calling the AcceleratorType obj's underlying member method code with example usage: obj.validate(cls, key) without return types