input: Write a python function to train a linear regression model using provided data and make predictions.
  assert (train_and_predict_model(data) == expected_output).all()
  assert (train_and_predict_model(other_data) == other_expected_output).all()
output: def train_and_predict_model(data):
      from sklearn.linear_model import LinearRegression
      import numpy as np
  
      # Split the data into input features (X) and target variable (y)
      X = np.array(data['input'])
      y = np.array(data['target'])
  
      # Train the linear regression model
      model = LinearRegression()
      model.fit(X, y)
  
      # Make predictions
      predictions = model.predict(X)
  
      return predictions