code: def _get_mixed_pattern(x, pattern):
      if pattern == "sin":
          return (torch.sin(x) + torch.normal(0, 0.1, size=x.shape)) * 5
      elif pattern == "linear":
          return x * 2 + torch.normal(0, 1, size=x.shape)
      elif pattern == "quadratic":
          return x**1.5 + torch.normal(0, 5, size=x.shape)
      else:
          return torch.sqrt(x) + torch.normal(0, 1, size=x.shape)
  
file_path: gluonts/src/gluonts/nursery/SCott/preprocess_data.py
imports: from pts.dataset.repository.datasets import get_dataset, dataset_recipes
  from pts.dataset.utils import to_pandas
  import os
  import numpy
  import pandas
  from pts.dataset import ListDataset
  import torch
  import pickle
  import json
  import random
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: _get_mixed_pattern(x, pattern) and returns: unknown, unknown, unknown, unknown