@staticmethod<EOL><INDENT>def parse_file_provider(uri):<DEDENT>
providers = {'<STR_LIT>': job_model.P_GCS, '<STR_LIT:file>': job_model.P_LOCAL}<EOL>provider_found = re.match(r'<STR_LIT>', uri)<EOL>if provider_found:<EOL><INDENT>prefix = provider_found.group(<NUM_LIT:1>).lower()<EOL><DEDENT>else:<EOL><INDENT>prefix = '<STR_LIT:file>'<EOL><DEDENT>if prefix in providers:<EOL><INDENT>return providers[prefix]<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>' % prefix)<EOL><DEDENT>
Find the file provider for a URI.