class_docstr: A key-value store for testing.
class_docstr_tok: ["A","key-value","store","for","testing","."]
docstr: Queries if the KVStore type supports certain capability, such as optimizer algorithm,
  gradient compression, sparsity, etc.
  If the kvstore does not store weights in server part, then no optimizer is supported,
  this function will return False.
  
  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",".","If","the","kvstore","does","not","store","weights","in","server","part",",","then","no","optimizer","is","supported",",","this","function","will","return","False",".","Parameters","--","--","--","--","--","capability",":","str","The","capability","to","query","Returns","--","--","--","-","result",":","bool","Whether","the","capability","is","supported","or","not","."]
code: def is_capable(capability):
      """Queries if the KVStore type supports certain capability, such as optimizer algorithm,
      gradient compression, sparsity, etc.
      If the kvstore does not store weights in server part, then no optimizer is supported,
      this function will return False.
  
      Parameters
      ----------
      capability: str
          The capability to query
  
      Returns
      -------
      result : bool
          Whether the capability is supported or not.
      """
      if capability.lower() == KVStoreBase.OPTIMIZER:
          return False
      else:
          raise ValueError("Unknown capability: {}".format(capability))
  
imports: from array import array
  import ctypes
  import warnings
  from ..ndarray import NDArray
  from ..base import _LIB, c_str_array, c_handle_array, c_array, c_array_buf, c_str
  from ..base import check_call, string_types
  from ..base import KVStoreHandle
  from ..profiler import set_kvstore_handle
label_desc: Use image node_id 3 for calling the TestStore obj's underlying member method code with example usage: obj.is_capable(capability) and returns: False