code: def get_props(rows=100, data_fn=generate_mock_data):
      mockProps = data_fn(rows)
  
      mockProps.update(
          dict(
              columns=[
                  dict(
                      c,
                      name=c["name"] if "name" in c else c["id"],
                      on_change=dict(action="none"),
                      renamable=True,
                      deletable=True,
                  )
                  for c in mockProps["columns"]
              ]
          )
      )
  
      baseProps = dict(
          id="table",
          editable=True,
          page_action="none",
          style_table=dict(
              maxHeight="800px",
              height="800px",
              maxWidth="1000px",
              width="1000px",
          ),
          style_cell=dict(maxWidth=150, minWidth=150, width=150),
      )
  
      baseProps.update(mockProps)
  
      return baseProps
  
imports: from datetime import date, timedelta
label_desc: Use image node_id 5 for calling a global function with example usage: get_props(rows, data_fn) and returns: baseProps