code: def get(token: Union[str, int] = None) -> 'Role':
          
  
          if token is None:
              return Role.USER
  
          for role in Role:
              if role == Role.ROLE_REMOVE:
                  continue  # ROLE_REMOVE is not a sensible role to parse from any configuration
              if isinstance(token, int) and token in role.value:
                  return role
              if str(token).upper() == role.name or token in (str(v) for v in role.value):  # could be numeric string
                  return role
  
          return None
docs: Return enum instance corresponding to input token.
  
          :param token: token identifying role to indy-sdk: 'STEWARD', 'TRUSTEE', 'TRUST_ANCHOR', '' or None
          :return: enum instance corresponding to input token