def Deserialize(s, parse_float=float):
  """Return an object for a binary serialized version.

  Depending on the target platform, precision of float values may be lowered
  on deserialization.  Use parse_float to provide an alternative
  floating point translation function, e.g. decimal.Decimal, if retaining
  high levels of float precision (> ~10 places) is important.


  Args:
    s: str
    parse_float: callable, optional, to translate floating point values
  Returns:
    any object that was serialized
  Raises:
    DeserializeError: if an error occured during deserialization
  """
  try:
    if s is None:
      raise DeserializeError('Nothing to deserialize: %s' % type(s))
    return json.loads(s, parse_float=parse_float)
  except __HOLE__ as e:
    raise DeserializeError(e)
dataset/ETHPy150Open google/simian/src/simian/mac/common/util.py/Deserialize