code: def is_tpu_config(config):
      if config:
          return (
              config.accelerator_type == AcceleratorType.TPU_V2
              or config.accelerator_type == AcceleratorType.TPU_V3
          )
      return False
  
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 1 for calling a global function with example usage: is_tpu_config(config) and returns: False, unknown