<｜begin▁of▁sentence｜>### Instruction:
Given a networkx graph with nodes and edges where each edge has a corresponding weight attribute, how can you verify that all these weights are real numbers (including negative real numbers), and thus determine if the graph qualifies as a real weighted graph?
### Response:
import networkx as nx
from graspologic.preconditions import is_real_weighted

# Create a graph with real weighted edges
G = nx.Graph()
G.add_edge(1, 2, weight=3.5)
G.add_edge(2, 3, weight=4.1)
G.add_edge(3, 4, weight=-2.7)  # Negative weight

# Check if the graph is a real weighted graph
is_real_weighted_graph = is_real_weighted(G, weight_attribute='weight')

print(f'Graph is real weighted: {is_real_weighted_graph}')
<|EOT|>
