class_docstr: Abstract class representing predictions.
class_docstr_tok: ["Abstract","class","representing","predictions","."]
docstr: Return a new Forecast object with only the selected sub-dimension.
  
  Parameters
  ----------
  dim
      The returned forecast object will only represent this dimension.
code: def copy_dim(self, dim: int):
      """
      Return a new Forecast object with only the selected sub-dimension.
  
      Parameters
      ----------
      dim
          The returned forecast object will only represent this dimension.
      """
      raise NotImplementedError()
  
imports: import re
  import logging
  from dataclasses import field
  from typing import Callable, Dict, List, Optional, Union, Tuple
  import numpy
  import pandas
  from gluonts.core.component import validated
  from gluonts.pydantic import dataclass
  from gluonts import maybe
label_desc: Use image node_id 10 for calling the Forecast obj's underlying member method code with example usage: obj.copy_dim(dim) without return types