class_docstr: N-BEATS block which takes a basis function as an argument.
class_docstr_tok: ["N-BEATS","block","which","takes","a","basis","function","as","an","argument","."]
code: def forward(
      self, insample_y: torch.Tensor
  ) -> Tuple[torch.Tensor, torch.Tensor]:
      # Compute local projection weights and projection
      theta = self.layers(insample_y)
      backcast, forecast = self.basis(theta)
      return backcast, forecast
  
imports: from typing import Tuple, Optional
  import numpy
  import torch
  import torch.nn
  from ..losses.pytorch import MAE
  from ..common._base_windows import BaseWindows
label_desc: Use image node_id 2 for calling the NBEATSBlock obj's underlying member method code with example usage: obj.forward(insample_y) and returns: backcast,  forecast