code: def _num_available_gpus():
      num_cuda = _num_available_cuda_gpus()
      if num_cuda > 0:
          return num_cuda
  
      from turicreate.toolkits._mps_utils import has_fast_mps_support
  
      if has_fast_mps_support():
          return 1
  
      return 0
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import os
  import urllib
  import re
  import itertools
  import uuid
  import datetime
  import sys
  from ._sframe_generation import generate_random_sframe
  from ._sframe_generation import generate_random_regression_sframe
  from ._sframe_generation import generate_random_classification_sframe
  from ._type_checks import _raise_error_if_not_of_type
  from ._type_checks import _is_non_string_iterable
  from ._progress_table_printer import ProgressTablePrinter
label_desc: Use image node_id 20 for calling a global function with example usage: _num_available_gpus() and returns: int, num_cuda, int