parameters: (self, device_type=None)
return_statement: return [d for d in self._logical_devices if d.device_type == device_type]
docstring: Return logical devices.
docstring_summary: Return logical devices.
docstring_tokens: Return logical devices .
function: def list_logical_devices(self, device_type=None):
      """Return logical devices."""
      self.ensure_initialized()
      if device_type is None:
        return list(self._logical_devices)
  
      return [d for d in self._logical_devices if d.device_type == device_type]
function_tokens: def list_logical_devices ( self , device_type = None ) : self . ensure_initialized ( ) if device_type is None : return list ( self . _logical_devices ) return [ d for d in self . _logical_devices if d . device_type == device_type ]