def METHOD_NAME(self, value):
    obj = Lookups()
    obj.data = value
    obj.interp = "interp"
    obj.is_float = len(value.shape) < 2
    obj.final_coords = {
        dim: value.coords[dim] for dim in value.dims if dim != "lookup_dim"
    }
    obj.py_name = "lookup"
    return obj