def parse_identity(identity):
 try:
  identity = _identities[identity]
 except KeyError:
  raise ValueError(('Invalid identity value %r' % (identity,)))
 return identity

def parse_identity ( identity ) : try : identity = _identities [ identity ] except KeyError : raise ValueError ( ( 'Invalid identity value %r' % ( identity , ) ) ) return identity
parse an identity value and return the corresponding low-level value for numpy .