code: def get_broker_id(data_path):
      
  
      # Path to the meta.properties file. This is used to read the automatic broker id
      # if the given broker id is -1
      META_FILE_PATH = "{data_path}/meta.properties"
  
      if not data_path:
          raise ValueError("You need to specify the data_path if broker_id == -1")
      meta_properties_path = META_FILE_PATH.format(data_path=data_path)
      return _read_generated_broker_id(meta_properties_path)
docs: This function will look into the data folder to get the automatically created
      broker_id.
  
      :param string data_path: the path to the kafka data folder
      :returns int: the real broker_id