def _load_pitch_dimensions(meta_data_elm, sensors: List[Sensor]) -> Union[(None, PitchDimensions)]:
    normalized = False
    for sensor in sensors:
        if (sensor.sensor_id == 'position'):
            if (sensor.channels[0].unit == 'normalized'):
                normalized = True
                break
    field_size_path = objectify.ObjectPath('Metadata.Sessions.Session[0]')
    field_size_elm = field_size_path.find(meta_data_elm).find('FieldSize')
    if ((field_size_elm is not None) and normalized):
        return PitchDimensions(x_dim=Dimension(0, 1), y_dim=Dimension(0, 1), x_per_meter=(1 / int(field_size_elm.find('Width'))), y_per_meter=(1 / int(field_size_elm.find('Height'))))
    else:
        return None
def _load_pitch_dimensions(meta_data_elm, sensors: List[Sensor]) -> Union[(None, PitchDimensions)]:
    normalized = False
    for sensor in sensors:
        if (sensor.sensor_id == 'position'):
            if (sensor.channels[0].unit == 'normalized'):
                normalized = True
                break
    field_size_path = objectify.ObjectPath('Metadata.Sessions.Session[0]')
    field_size_elm = field_size_path.find(meta_data_elm).find('FieldSize')
    if ((field_size_elm is not None) and normalized):
        return PitchDimensions(x_dim=Dimension(0, 1), y_dim=Dimension(0, 1), x_per_meter=(1 / int(field_size_elm.find('Width'))), y_per_meter=(1 / int(field_size_elm.find('Height'))))
    else:
        return None