<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_unprocessed_local_replica(pid):
 """Is local replica with status "queued"."""

    return d1_gmn.app.models.LocalReplica.objects.filter(
        pid__did=pid, info__status__status='queued'
    ).exists()