code: def __init__(
      self,
      num_pos_feats=64,
      temperature=10000,
      normalize=False,
      scale=None,
  ):
      super().__init__()
      self.num_pos_feats = num_pos_feats
      self.temperature = temperature
      self.normalize = normalize
      if scale is not None and normalize is False:
          raise ValueError(
              "normalize should be True if scale is passed"
          )
      if scale is None:
          scale = 2 * math.pi
      self.scale = scale
  
file_path: PaddleSeg/contrib/PanopticSeg/paddlepanseg/models/mask2former/common.py
imports: import math
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddlepanseg.models.common import *
label_desc: Use image node_id 1 to create a new PositionEmbeddingSine object from inherited base classes: nn with example: obj = PositionEmbeddingSine(num_pos_feats, temperature, normalize, scale)