human
Solve the following python programming problem given the following code:
# Define class for dataset

class toy_set(Dataset):
    
    # Constructor with defult values 
    def __init__(self, length = 100, transform = None):
        self.len = length
        self.x = 2 * torch.ones(length, 2)
        self.y = torch.ones(length, 1)
        self.transform = transform
     
    # Getter
    def __getitem__(self, index):
        sample = self.x[index], self.y[index]
        if self.transform:
            sample = self.transform(sample)     
        return sample
    
    # Get Length
    def __len__(self):
        return self.len
Given the above code, generate some markdown instructions for it.
assistant
#Here is the Python code you requested.

<!--Empty Space for separating topics-->

<h2 id="Simple_Dataset">Simple dataset</h2>

Let us try to create our own dataset class.