<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pid_from_context(_, context):
 """Get PID from marshmallow context."""

    pid = (context or {}).get('pid')
    return pid.pid_value if pid else missing