Implement Ivy's Resouce.clone method.