code: def set_reference_and_query(
      self,
      embeddings_and_labels,
      query_split_name,
      reference_split_names,
  ):
      assert (
          query_split_name == reference_split_names[0]
          and len(reference_split_names) == 1
      ), "{} does not support different reference and query splits".format(
          self.__class__.__name__
      )
      embeddings, labels = embeddings_and_labels[query_split_name]
      half = int(embeddings.shape[0] / 2)
      anchors_embeddings = embeddings[:half]
      posneg_embeddings = embeddings[half:]
      query_labels = labels[:half]
      return (
          anchors_embeddings,
          query_labels,
          posneg_embeddings,
          query_labels,
      )
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/testers/global_twostream_embedding_space.py
imports: import torch
  import tqdm
  from ..utils import common_functions
  from .global_embedding_space import GlobalEmbeddingSpaceTester
label_desc: Use image node_id 3 for calling the GlobalTwoStreamEmbeddingSpaceTester obj's underlying member method code with example usage: obj.set_reference_and_query(embeddings_and_labels, query_split_name, reference_split_names) and returns: anchors_embeddings,  query_labels,  posneg_embeddings,  query_labels