def get_resource_from_uri(request_uri: str) -> Resource | None:
    """
    Split the uri so we can determine the resource that is being requested
    (note that because it starts with a /, the first item in the list will be a blank string)

    :param request_uri: (str) django.http.HttpRequest.path
    """
    split_uri = request_uri.split("/")[1:]
    if not (len(split_uri) >= 3 and split_uri[0] == "api"):
        logger.debug("not tracking event for uri %s" % request_uri)
        # this isn't an API request so we don't need to track an event for it
        return None

    # uri will be in the form /api/v1/<resource>/...
    return Resource.get_from_name(split_uri[2])

    Split the uri so we can determine the resource that is being requested
    (note that because it starts with a /, the first item in the list will be a blank string)

    :param request_uri: (str) django.http.HttpRequest.path
    
api/app_analytics/track.py