<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def infer_format(filename:str) -> str: """Return extension identifying format of given filename"""

    _, ext = os.path.splitext(filename)
    return ext