code: def set_tensor_shape(
      tensor: tf.Tensor, tensor_shape: Any
  ) -> tf.Tensor:
      """
      Set shape for a tensor (not in place, as opposed to tf.set_shape).
  
      Parameters:
          tensor (tensorflow.Tensor):
              Tensor to reshape.
          tensor_shape (Any):
              Shape to apply to the tensor.
  
      Returns:
          tensorflow.Tensor:
              A reshaped tensor.
      """
      tensor.set_shape(tensor_shape)
      return tensor
  
file_path: spleeter/spleeter/utils/tensor.py
imports: from typing import Any, Callable, Dict
  import pandas
  import tensorflow
label_desc: Use image node_id 8 for calling a global function with example usage: set_tensor_shape(tensor, tensor_shape) and returns: tensor