def get_opener(self, path):
self.path = path<EOL>opener = None<EOL>for opener_name, signature in self.openers.items():<EOL><INDENT>if self.path.startswith(signature[<NUM_LIT:0>]):<EOL><INDENT>opener = signature[<NUM_LIT:1>](self.path)<EOL>break<EOL><DEDENT><DEDENT>if not opener:<EOL><INDENT>opener = FileOpener(self.path)<EOL><DEDENT>return opener<EOL>
Args:
    path: str, resource file url or resource file absolute/relative path.

Returns:
    file object