def METHOD_NAME(resource, isreplacedby, replaces):
    """ create a depiction of what is displayed and what is not displayed in discover
        according to resource.show_in_discover. These are the resources that will show
        up on the discover page.
    """
    print("resource {} (show={}, disc={}, created={}) '{}':"
          .format(resource.short_id,
                  resource.show_in_discover,
                  resource.raccess.discoverable,
                  resource.created.strftime("%Y-%m-%d %H:%M:%S"),
                  resource.title))
    if resource.short_id in replaces:
        repl = replaces[resource.short_id]  # things that resource.short_id replaces
        for rid in repl:
            try:
                r = get_resource_by_shortkey(rid, or_404=False)
            except BaseResource.DoesNotExist:
                r = None
            if r is not None:
                print("    replaces {} (show={}, disc={}, created={}) '{}'"
                      .format(r.short_id,
                              r.show_in_discover,
                              r.raccess.discoverable,
                              r.created.strftime("%Y-%m-%d %H:%M:%S"),
                              r.title))
            else:
                print("    replaces {} (DELETED)".format(rid))
    if resource.short_id in isreplacedby:
        repl = isreplacedby[resource.short_id]  # things that are replaced by resource.short_id
        for rid in repl:
            try:
                r = get_resource_by_shortkey(rid, or_404=False)
            except BaseResource.DoesNotExist:
                r = None
            if r is not None:
                print("    is replaced by {} (show={}, disc={}, created={}) '{}'"
                      .format(r.short_id,
                              r.show_in_discover,
                              r.raccess.discoverable,
                              r.created.strftime("%Y-%m-%d %H:%M:%S"),
                              r.title))
            else:
                print("    is replaced by {} (DELETED)".format(rid))