code: def test_allow_custom_ops(self):
      target_spec = tf.lite.TargetSpec()
      target_spec.supported_ops = [
          tf.lite.OpsSet.TFLITE_BUILTINS,
          tf.lite.OpsSet.SELECT_TF_OPS,
      ]
  
      @authoring.compatible(
          converter_allow_custom_ops=True,
          converter_target_spec=target_spec,
      )
      @tf.function
      def f():
          dataset = tf.data.Dataset.range(3)
          dataset = dataset.shuffle(3, reshuffle_each_iteration=True)
          return dataset
  
      f()
      log_messages = f.get_compatibility_log()
      self.assertEmpty(log_messages)
  
file_path: tensorflow-upstream/tensorflow/lite/python/authoring/authoring_test.py
imports: import tensorflow
  from tensorflow.lite.python.authoring import authoring
label_desc: Use image node_id 13 for calling the TFLiteAuthoringTest obj's underlying member method code with example usage: obj.test_allow_custom_ops() and returns: dataset