parameters: (self, identity)
docstring: Create Device object from device identity created by
          ``Device.get_device_identity()``.
docstring_summary: Create Device object from device identity created by
          ``Device.get_device_identity()``.
docstring_tokens: Create Device object from device identity created by Device . get_device_identity () .
function: def from_identity(self, identity):
          """Create Device object from device identity created by
          ``Device.get_device_identity()``.
          """
          for devid in range(driver.get_device_count()):
              d = driver.get_device(devid)
              if d.get_device_identity() == identity:
                  return d
          else:
              errmsg = (
                  "No device of {} is found. "
                  "Target device may not be visible in this process."
              ).format(identity)
              raise RuntimeError(errmsg)
function_tokens: def from_identity ( self , identity ) : for devid in range ( driver . get_device_count ( ) ) : d = driver . get_device ( devid ) if d . get_device_identity ( ) == identity : return d else : errmsg = ( "No device of {} is found. " "Target device may not be visible in this process." ) . format ( identity ) raise RuntimeError ( errmsg )