Embedding a python function on a tab in dash

Hi all-

I am working on multiple tabs and I want to embed a python function for the tab.

I have the code below:

app.layout = html.Div([
html.H2(‘Carrier Management’, style={
‘textAlign’: ‘center’, ‘margin’: ‘18px 0’, ‘fontFamily’: ‘system-ui’}),
dcc.Tabs(id=“tabs”, children=[
dcc.Tab(label=‘Performance’, children=[
html.P(“Performance Metrics”)


I want to call another function here for my tab (the function has a graphs based on a csv data)