code: def inquire_by_mech(self, mech, name=True, init_lifetime=True,
                          accept_lifetime=True, usage=True):
          
  
          res = rcreds.inquire_cred_by_mech(self, mech, name, init_lifetime,
                                            accept_lifetime, usage)
  
          if res.name is not None:
              res_name = names.Name(res.name)
          else:
              res_name = None
  
          return tuples.InquireCredByMechResult(res_name,
                                                res.init_lifetime,
                                                res.accept_lifetime,
                                                res.usage)
docs: Inspect these credentials for per-mechanism information
  
          This method inspects these credentials for per-mechanism information
          about them.
  
          Args:
              mech (OID): the mechanism for which to retrive the information
              name (bool): get the name associated with the credentials
              init_lifetime (bool): get the remaining initiate lifetime for
                  the credentials
              accept_lifetime (bool): get the remaining accept lifetime for
                  the credentials
              usage (bool): get the usage for the credentials
  
          Returns:
              InquireCredByMechResult: the information about the credentials,
                  with None used when the corresponding argument was False