def _get_input_device(self) -> cirq.Device:
        """Return a `cg.GridDevice` for the specified processor_id.

        Only 'rainbow' and 'weber' are recognized processor_ids and the device information
        may not be up-to-date, as it is completely local.
        """

        device_spec = _create_device_spec_from_template(MOST_RECENT_TEMPLATES[self.processor_id])
        device = cg.GridDevice.from_proto(device_spec)
        return device
Return a `cg.GridDevice` for the specified processor_id.

        Only 'rainbow' and 'weber' are recognized processor_ids and the device information
        may not be up-to-date, as it is completely local.
        
cirq-google/cirq_google/workflow/processor_record.py