tf.contrib was removed.
You can use:

  
      

      TensorFlow
  

  
    

tf.keras.initializers.VarianceScaling  |  TensorFlow Core v2.5.0 4

  Initializer capable of adapting its scale to the shape of weights tensors.