def test_pardo_side_input_dofn(self):
    words = ['a', 'bb', 'ccc', 'dddd']

    # [START model_pardo_side_input_dofn]
    class FilterUsingLength(df.DoFn):
      def process(self, context, lower_bound, upper_bound=float('inf')):
        if lower_bound <= upper_bound <= len(context.element):
          yield context.element

    small_words = words | df.ParDo(FilterUsingLength(), 0, 3)
    # [END model_pardo_side_input_dofn]
    self.assertEqual({'a', 'bb', 'ccc'}, set(small_words))
dataset/ETHPy150Open GoogleCloudPlatform/DataflowPythonSDK/google/cloud/dataflow/examples/snippets/snippets_test.py/ParDoTest.test_pardo_side_input_dofn/swapped operands of `<=`