@tasks.register_helper<EOL>def get_poi_tuple(poi=None):
if poi:<EOL><INDENT>parts = poi.split('<STR_LIT::>')<EOL>if len(parts) == <NUM_LIT:2>:<EOL><INDENT>container_name, product_name = parts<EOL>if container_name not in tasks.get_containers():<EOL><INDENT>print('<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>elif product_name not in tasks.get_products(container_name):<EOL><INDENT>print('<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>container_dir = tasks.get_container_dir(container_name)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>print('<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>container_dir = os.environ.get('<STR_LIT>')<EOL>product_name = os.environ.get('<STR_LIT>')<EOL><DEDENT>return container_dir, product_name<EOL>
Takes the poi or None and returns the container_dir and the product name either of the passed poi
(<container_name>: <product_name>) or from os.environ-
:param poi: optional; <container_name>: <product_name>
:return: tuple of the container directory and the product name