<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resize_state_meta(state_m, factor, gaphas_editor=True):
 """ Resize state meta data recursive what includes also LibraryStateModels meta data and its internal state_copy """

    # print("START RESIZE OF STATE", state_m.get_meta_data_editor(for_gaphas=gaphas_editor), state_m)
    old_rel_pos = state_m.get_meta_data_editor(for_gaphas=gaphas_editor)['rel_pos']
    # print("old_rel_pos state", old_rel_pos, state_m.core_element)
    state_m.set_meta_data_editor('rel_pos', mult_two_vectors(factor, old_rel_pos), from_gaphas=gaphas_editor)
    # print("new_rel_pos state", state_m.get_meta_data_editor(for_gaphas=gaphas_editor), state_m.core_element)

    # print("resize factor", factor,  state_m, state_m.meta)
    old_size = state_m.get_meta_data_editor(for_gaphas=gaphas_editor)['size']
    # print("old_size", old_size, type(old_size))
    state_m.set_meta_data_editor('size', mult_two_vectors(factor, old_size), from_gaphas=gaphas_editor)
    # print("new_size", state_m.get_meta_data_editor(for_gaphas=gaphas_editor)['size'])
    if gaphas_editor:
        old_rel_pos = state_m.get_meta_data_editor(for_gaphas=gaphas_editor)['name']['rel_pos']
        state_m.set_meta_data_editor('name.rel_pos', mult_two_vectors(factor, old_rel_pos), from_gaphas=gaphas_editor)
        old_size = state_m.get_meta_data_editor(for_gaphas=gaphas_editor)['name']['size']
        state_m.set_meta_data_editor('name.size', mult_two_vectors(factor, old_size), from_gaphas=gaphas_editor)

    if isinstance(state_m, LibraryStateModel):
        # print("LIBRARY", state_m)
        if gaphas_editor and state_m.state_copy_initialized:
            if state_m.meta_data_was_scaled:
                resize_state_port_meta(state_m, factor, gaphas_editor)
            else:
                scale_library_ports_meta_data(state_m, gaphas_editor)

        if state_m.state_copy_initialized:
            resize_state_meta(state_m.state_copy, factor, gaphas_editor)
        # print("END LIBRARY RESIZE")
    else:
        # print("resize_state_meta -> resize_state_port_meta")
        resize_state_port_meta(state_m, factor, gaphas_editor)
        if isinstance(state_m, ContainerStateModel):
            _resize_connection_models_list(state_m.transitions[:] + state_m.data_flows[:], factor, gaphas_editor)
            for child_state_m in state_m.states.values():
                resize_state_meta(child_state_m, factor, gaphas_editor)