<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_sds(var, *args, **kwargs):
 """Create a dask array from a SD dataset."""

    var.__dict__['dtype'] = HTYPE_TO_DTYPE[var.info()[3]]
    shape = var.info()[2]
    var.__dict__['shape'] = shape if isinstance(shape, (tuple, list)) else tuple(shape)
    return da.from_array(var, *args, **kwargs)