from apache_beam.testing.test_pipeline import TestPipeline with TestPipeline() as p: option_value = p.get_option('my_option', 'default_value') print(option_value)In this example, we create a TestPipeline object and retrieve the value of the 'my_option' option. If the option is not set, the method returns 'default_value'. Overall, the TestPipeline module is a part of the Apache Beam python library, which can be installed via pip.