class_docstr: Abstract base class for botorch posteriors.
  
  :meta private:
class_docstr_tok: ["Abstract","base","class","for","botorch","posteriors",".",":","meta","private",":"]
docstr: Returns the shape of the samples produced by the posterior with
  the given `sample_shape`.
docstr_tok: ["Returns","the","shape","of","the","samples","produced","by","the","posterior","with","the","given","`","sample_shape","`","."]
code: def _extended_shape(
      self, sample_shape: torch.Size = torch.Size()  # noqa: B008
  ) -> torch.Size:
      r"""Returns the shape of the samples produced by the posterior with
      the given `sample_shape`.
      """
      raise NotImplementedError(
          f"{self.__class__.__name__} does not implement `_extended_shape`."
      )
  
file_path: botorch/botorch/posteriors/posterior.py
imports: from __future__ import annotations
  import warnings
  from abc import ABC, abstractmethod, abstractproperty
  from typing import Optional, Tuple
  import torch
  from torch import Tensor
label_desc: Use image node_id 9 for calling the Posterior obj's underlying member method code with example usage: obj._extended_shape(sample_shape) without return types