def is_reseller_admin(self, req, admin_detail=None):
req.credentials_valid = False<EOL>if self.is_super_admin(req):<EOL><INDENT>return True<EOL><DEDENT>if not admin_detail:<EOL><INDENT>admin_detail = self.get_admin_detail(req)<EOL><DEDENT>if not self.credentials_match(admin_detail,<EOL>req.headers.get('<STR_LIT>')):<EOL><INDENT>return False<EOL><DEDENT>req.credentials_valid = True<EOL>return '<STR_LIT>' in (g['<STR_LIT:name>'] for g in admin_detail['<STR_LIT>'])<EOL>
Returns True if the admin specified in the request represents a
        .reseller_admin.

        :param req: The swob.Request to check.
        :param admin_detail: The previously retrieved dict from
                             :func:`get_admin_detail` or None for this function
                             to retrieve the admin_detail itself.
        :param returns: True if .reseller_admin.