def METHOD_NAME(self,model_path):
    output_model = AutoModel.from_pretrained(model_path)
    dummy_inputs = output_model.dummy_inputs
    inputs_ordered = []
    non_main_inputs = []
    for name, array in dummy_inputs.items():
        if name == output_model.main_input_name:
            inputs_ordered.append(array)
        else:
            non_main_inputs.append(array)
        ordred_dummy_inputs = inputs_ordered + non_main_inputs
    return output_model, tuple(ordred_dummy_inputs)