def METHOD_NAME(file: IdentifiedFile) -> ProtocolFileRole:
    if isinstance(file, (IdentifiedJsonMain, IdentifiedPythonMain)):
        return ProtocolFileRole.MAIN
    elif isinstance(file, IdentifiedLabwareDefinition):
        return ProtocolFileRole.LABWARE
    elif isinstance(file, IdentifiedData):
        return ProtocolFileRole.DATA