def se_or(x, default=None): v = s_or(x, default=default) return v if v is None else to_ascii(v)
def from_d(d): """Convert from Service JSON response to `ServiceEntryPoint` instance""" i = _to_resource_id(d['datasetId']) return ServiceEntryPoint(to_ascii(d['entryId']), to_ascii(d['fileTypeId']), i)
def se(x): return to_ascii(sx(x))