class_docstr: Anchor entity selection strategy.
docstr: Initialize the strategy.
  
  :param num_anchors:
      the number of anchor nodes to select.
      # TODO: allow relative
code: def __init__(self, num_anchors: int = 32) -> None:
      """
      Initialize the strategy.
  
      :param num_anchors:
          the number of anchor nodes to select.
          # TODO: allow relative
      """
      self.num_anchors = num_anchors
  
imports: import logging
  from abc import ABC, abstractmethod
  from typing import Iterable, Optional, Sequence, Union
  import numpy
  import torch
  from class_resolver import ClassResolver, HintOrType, OptionalKwargs
  from torch_ppr import page_rank
  from ...triples.splitting import get_absolute_split_sizes, normalize_ratios
  from ...typing import OneOrSequence
  from ...utils import ExtraReprMixin
label_desc: Use image node_id 1 to create a new AnchorSelection object from inherited base classes: ExtraReprMixin, ABC with example: obj = AnchorSelection(num_anchors)