code: def _getReshapedRetrieval(
      self, retrievedPosIndexes, retrievedNegIndexes=None
  ):
      if not retrievedNegIndexes is None:
          reshapedRetrieval = np.concatenate(
              [
                  retrievedPosIndexes.reshape(-1),
                  retrievedNegIndexes.reshape(-1),
              ]
          )
      else:
          reshapedRetrieval = retrievedPosIndexes.reshape(-1)
      return reshapedRetrieval
  
imports: import torch
  import os
  import numpy
label_desc: Use image node_id 4 for calling the _CPUPytorchCommon obj's underlying member method code with example usage: obj._getReshapedRetrieval(retrievedPosIndexes, retrievedNegIndexes) and returns: reshapedRetrieval