<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_statuses(self, batch_ids):
 """Returns a statuses dict for the requested batches. Args: batch_ids (list of str):
 The ids of the batches to get statuses for Returns: dict: A dict with keys of batch ids, and values of status enums """

        with self._lock:
            return {b: self.get_status(b) for b in batch_ids}