code: def ok_did(token: str) -> bool:
      
  
      return bool(re.match('[{}]{{21,22}}$'.format(B58), token or ''))
docs: Whether input token looks like a valid distributed identifier.
  
      :param token: candidate string
      :return: whether input token looks like a valid schema identifier