title: WARNING:tensorflow:Entity <function get_tensorlists at ...> could not be transformed and will be executed as-is
body: <p>In Spyder 4.0.1, when I run the following code</p>
  
  <pre><code>import tensorflow as tf
  
  @tf.function
  def get_tensorlists(m,n,max=7):
    list1 = tf.random.uniform([m,n],0,max,seed=0)
    list2 = tf.random.uniform([m,n],0,max,seed=0)
    return list1,list2
  
  @tf.function
  def get_dataset(X,Y,epochs):
    set = tf.data.Dataset.from_tensor_slices((X,Y))
    # adjust it the way we need
    set = set.shuffle(100).repeat(epochs).batch(1)
    return set
  
  temp = get_tensorlists(10,1)
  X = temp[0]
  Y = temp[1]
  dataset = get_dataset(X,Y,1)
  
  print(dataset)
  i = 0
  for (x,y) in dataset:
    i+=1
    print(i)
    print(x,y)
  </code></pre>
  
  <p>I get this error print:</p>
  
  <pre><code>WARNING:tensorflow:Entity &lt;function get_tensorlists at 0x000001DA9852C798&gt; could not be transformed and will be executed as-is.
  Please report this to the AutgoGraph team.
  </code></pre>
  
  <p>The only suggestion I found is to install <code>pip install gast==0.2.2</code> and restart Spyder. But that didn't change anything for me.</p>
  
  <p>So, how can I get rid of this error?</p>