<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _read_generated_broker_id(meta_properties_path):
 """reads broker_id from meta.properties file. :param string meta_properties_path: path for meta.properties file :returns int: broker_id from meta_properties_path """

    try:
        with open(meta_properties_path, 'r') as f:
            broker_id = _parse_meta_properties_file(f)
    except IOError:
        raise IOError(
            "Cannot open meta.properties file: {path}"
            .format(path=meta_properties_path),
        )
    except ValueError:
        raise ValueError("Broker id not valid")

    if broker_id is None:
        raise ValueError("Autogenerated broker id missing from data directory")

    return broker_id