class_docstr: A key-value store for synchronization of values, over multiple devices.
class_docstr_tok: ["A","key-value","store","for","synchronization","of","values",",","over","multiple","devices","."]
docstr: Queries if the KVStore type supports certain capability, such as optimizer algorithm,
  gradient compression, sparsity, etc.
  
  Parameters
  ----------
  capability: str
      The capability to query
  
  Returns
  -------
  result : bool
      Whether the capability is supported or not.
docstr_tok: ["Queries","if","the","KVStore","type","supports","certain","capability",",","such","as","optimizer","algorithm",",","gradient","compression",",","sparsity",",","etc",".","Parameters","--","--","--","--","--","capability",":","str","The","capability","to","query","Returns","--","--","--","-","result",":","bool","Whether","the","capability","is","supported","or","not","."]
code: def is_capable(self, capability):
      """Queries if the KVStore type supports certain capability, such as optimizer algorithm,
      gradient compression, sparsity, etc.
  
      Parameters
      ----------
      capability: str
          The capability to query
  
      Returns
      -------
      result : bool
          Whether the capability is supported or not.
      """
      if capability.lower() == KVStoreBase.OPTIMIZER:
          return not self._is_p3
      else:
          raise ValueError("Unknown capability: {}".format(capability))
  
imports: import pickle
  import ctypes
  import os
  from ..ndarray import NDArray
  from ..ndarray import _ndarray_cls
  from ..base import _LIB, c_str
  from ..base import check_call, mx_uint, py_str
  from ..base import NDArrayHandle, KVStoreHandle
  from ..None import optimizer
  from .base import _ctype_key_value, _ctype_dict, KVStoreBase
label_desc: Use image node_id 4 for calling the KVStore obj's underlying member method code with example usage: obj.is_capable(capability) and returns: unknown