code: def get_test_tensors(channels):
      value = (
          paddle.rand(
              [bs, value_length, n_heads, channels],
              dtype=paddle.float32,
          )
          * 0.01
      )
      sampling_locations = paddle.rand(
          [bs, query_length, n_heads, n_levels, n_points, 2],
          dtype=paddle.float32,
      )
      attention_weights = (
          paddle.rand(
              [bs, query_length, n_heads, n_levels, n_points],
              dtype=paddle.float32,
          )
          + 1e-5
      )
      attention_weights /= attention_weights.sum(-1, keepdim=True).sum(
          -2, keepdim=True
      )
  
      return [value, sampling_locations, attention_weights]
  
file_path: PaddleDetection/ppdet/modeling/transformers/ext_op/test_ms_deformable_attn_op.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import division
  import os
  import sys
  import random
  import numpy
  import paddle
  from ppdet.modeling.transformers.utils import deformable_attention_core_func
label_desc: Use image node_id 1 for calling a global function with example usage: get_test_tensors(channels) and returns: list