    def get_worker_info(self) -> Optional[WorkerInfo]:
        """
        Provides a [`WorkerInfo`](#WorkerInfo) object when the reader is being used within a
        worker of a multi-process `DataLoader`.

        If the reader is in the main process, this is just `None`.

        !!! NOTE
            This is different than distributed training. If the `DatasetReader`
            is being used within distributed training, `get_worker_info()` will only
            provide information on the `DataLoader` worker within its node.

            Use [`get_distributed_info`](#get_distributed_info) to get information on distributed
            training context.

        """
        return self._worker_info
Provides a [`WorkerInfo`](#WorkerInfo) object when the reader is being used within a
worker of a multi-process `DataLoader`.

If the reader is in the main process, this is just `None`.

!!! NOTE
This is different than distributed training. If the `DatasetReader`
is being used within distributed training, `get_worker_info()` will only
provide information on the `DataLoader` worker within its node.

Use [`get_distributed_info`](#get_distributed_info) to get information on distributed
training context.
allennlp/data/dataset_readers/dataset_reader.py