def METHOD_NAME(c):
    if c is None:
        return np.zeros(shape, np.uint8)
    c = np.asanyarray(c)
    if c.shape == ():
        c = np.tile(c, shape)
        return c.astype(np.uint8, copy=False)
    elif c.shape != shape:
        sh = lambda c : (c.shape if c is not None else ' . ')
        raise ValueError('mahotas.as_rgb: Not all arguments have the same shape. Shapes were : %s' % [sh(r), sh(g), sh(b)])
    return stretch(c)