code: def apply(
      function: Callable,
      input_tensor: tf.Tensor,
      instruments: Iterable[str],
      params: Optional[Dict] = None,
  ) -> Dict:
      """
      Apply given function to the input tensor.
  
      Parameters:
          function (Callable):
              Function to be applied to tensor.
          input_tensor (tf.Tensor):
              Tensor to apply blstm to.
          instruments (Iterable[str]):
              Iterable that provides a collection of instruments.
          params (Optional[Dict]):
              (Optional) dict of BLSTM parameters.
  
      Returns:
          Dict:
              Created output tensor dict.
      """
      output_dict: Dict = {}
      for instrument in instruments:
          out_name = f"{instrument}_spectrogram"
          output_dict[out_name] = function(
              input_tensor, output_name=out_name, params=params or {}
          )
      return output_dict
  
label_desc: Use image node_id 1 for calling a global function with example usage: apply(function, input_tensor, instruments, params) and returns: output_dict