def METHOD_NAME(
    *, h_userids: List[str], updated_after: str, updated_before: str, **kwargs
) -> None:
    """
    Generate and send instructor email digests to the given users.
    The email digests will cover activity that occurred in the time period
    described by the `updated_after` and `updated_before` arguments.
    :param h_userids: the h_userid's of the instructors to email
    :param updated_after: the beginning of the time period as an ISO 8601 format string
    :param updated_before: the end of the time period as an ISO 8601 format string
    :param kwargs: other keyword arguments to pass to DigestService.send_instructor_email_digests()
    """
    # Caution: datetime.fromisoformat() doesn't support all ISO 8601 strings!
    # This only works for the subset of ISO 8601 produced by datetime.isoformat().
    updated_after = datetime.fromisoformat(updated_after)
    updated_before = datetime.fromisoformat(updated_before)
    with app.request_context() as request:  # pylint:disable=no-member
        with request.tm:
            digest_service = request.find_service(DigestService)
            digest_service.METHOD_NAME(
                h_userids, updated_after, updated_before, **kwargs
            )