<｜begin▁of▁sentence｜>### Instruction:
Given a dataset with 10 samples each having 4 features, and each sample is labeled as either 'A' or 'B', how can one visualize the pairwise relationships and distribution of features in the dataset using graspologic's pairplot function?
### Response:
import numpy as np
import graspologic

# Generate synthetic data
np.random.seed(42)
X = np.random.rand(10, 4)  # 10 samples with 4 features
labels = np.array(['A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B'])  # Labels for each sample

# Feature names
col_names = ['Feature 1', 'Feature 2', 'Feature 3', 'Feature 4']

# Create the pairplot
pairplot = graspologic.plot.pairplot(X, labels=labels, col_names=col_names, title='Pairplot', legend_name='Type', height=10, context='talk', font_scale=1.2, palette='Set1', alpha=0.7, size=50, marker='o')
pairplot.savefig('pairplot.png')
<|EOT|>
