<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def open_bled112(port, logger):
 """Open a BLED112 adapter either by name or the first available."""


    if port is not None and port != '<auto>':
        logger.info("Using BLED112 adapter at %s", port)
        return serial.Serial(port, _BAUD_RATE, timeout=0.01, rtscts=True, exclusive=True)

    return _find_available_bled112(logger)