def METHOD_NAME(nodes_data: dict) -> EnergySystem:
    """
        Creates an energy system with the parameters defined in the
        given .xlsx-file. The file has to contain a sheet called
        "energysystem", which has to be structured as follows:
        +-------------------+-------------------+-------------------+
        |start_date         |end_date           |temporal resolution|
        +-------------------+-------------------+-------------------+
        |YYYY-MM-DD hh:mm:ss|YYYY-MM-DD hh:mm:ss|h                  |
        +-------------------+-------------------+-------------------+
        :param nodes_data: dictionary containing data from excel model \
            definition file
        :type nodes_data: dict
        :return: **esys** (oemof.solph.Energysystem) - oemof energy \
            system
    """
    # fix pyomo error while using the streamlit gui
    import pyutilib.subprocess.GlobalData
    pyutilib.subprocess.GlobalData.DEFINE_SIGNAL_HANDLERS_DEFAULT = False
    # Importing energysystem parameters from the scenario
    row = next(nodes_data["energysystem"].iterrows())[1]
    temp_resolution = row["temporal resolution"]
    timezone = row["timezone"]
    start_date = row["start date"]
    end_date = row["end date"]
    # creates time index
    datetime_index = pandas.date_range(start=start_date,
                                       end=end_date,
                                       freq=temp_resolution)
    # initialisation of the energy system
    esys = EnergySystem(timeindex=datetime_index)
    # setting the index column for time series and weather data
    for sheet in ["timeseries", "weather data"]:
        # defines a time series
        nodes_data[sheet].set_index("timestamp", inplace=True)
        nodes_data[sheet].index = \
            pandas.to_datetime(nodes_data[sheet].index.values, utc=True)
        nodes_data[sheet].index = \
            pandas.to_datetime(nodes_data[sheet].index).tz_convert(timezone)
    # returns logging info
    logging.info(
            "Date time index successfully defined:\n start date:          "
            + str(start_date)
            + ",\n end date:            "
            + str(end_date)
            + ",\n temporal resolution: "
            + str(temp_resolution)
    )
    # returns oemof energy system as result of this function
    return esys