old_contents: import tensorflow as tf
  
  from .assertion import is_natural_num
  from .util import func_scope, static_shape
  
  
  __all__ = ['sample_crop']
  
  
  @func_scope()
  def sample_crop(xs, n):
      assert is_natural_num(n)
      return tf.random_crop(
          xs,
          [tf.minimum(n, tf.shape(xs)[0]), *static_shape(xs)[1:]])
  
new_contents: import tensorflow as tf
  
  from .assertion import is_natural_num
  from .util import func_scope, static_shape
  
  
  __all__ = ['sample_crop']
  
  
  @func_scope()
  def sample_crop(xs, n):
      return tf.random_crop(
          xs,
          [tf.minimum(n, tf.shape(xs)[0]), *static_shape(xs)[1:]])
  
subject: Delete invalid assertion