def METHOD_NAME(self, update: Optional[dict] = None) -> dict:
    """Retreives job metadata and optionally updates document.
    Args:
        update: Dictionary containing fields to update in job document.
    Returns:
        The metadata associated with this job
    """
    session = QbraidSession()
    body = {"qbraidJobId": self.id}
    # Two status variables so we can track both qBraid and vendor status.
    if update is not None and "status" in update and "qbraidStatus" in update:
        body["status"] = update["status"]
        body["qbraidStatus"] = update["qbraidStatus"]
    metadata = session.put("/update-job", data=body).json()[0]
    metadata.pop("_id", None)
    metadata.pop("user", None)
    return metadata