def METHOD_NAME(self, picking):
    self.ensure_one()
    if picking.carrier_tracking_ref:
        tnt_request = TntRequest(self, picking)
        response = tnt_request.tracking_state_update()
        picking.delivery_state = response["delivery_state"]
        picking.tracking_state_history = response["tracking_state_history"]