code: def __init__(
      self,
      backcast_size: int,
      forecast_size: int,
      interpolation_mode: str,
  ):
      super().__init__()
      assert (interpolation_mode in ["linear", "nearest"]) or (
          "cubic" in interpolation_mode
      )
      self.forecast_size = forecast_size
      self.backcast_size = backcast_size
      self.interpolation_mode = interpolation_mode
  
imports: from functools import partial
  from typing import List, Tuple
  import numpy
  import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 1 to create a new IdentityBasis object from inherited base classes: nn with example: obj = IdentityBasis(backcast_size, forecast_size, interpolation_mode)