code: def apply_beamforming_numpy(beamform_weights, specgram):
      specgram_enhanced = np.einsum(
          "...fc,...cft->...ft", beamform_weights.conj(), specgram
      )
      return specgram_enhanced
  
imports: import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: apply_beamforming_numpy(beamform_weights, specgram) and returns: specgram_enhanced