In Python, you can use context managers to allocate and release resources within a block of code, such as opening and closing a file handle within the scope of a with
block in this example:
with open('some_file', 'w') as opened_file:
opened_file.write('Can Chapel do this!?')
Does a similar feature exist in Chapel? If so, how would you translate the above code example to Chapel?