code: def generate_mock_data_with_date(rows=100):
      props = generate_mock_data(rows)
  
      for c in props["columns"]:
          if c["id"] == "ccc":
              c.update(
                  dict(
                      name=["Date", "only"],
                      type="datetime",
                      validation=dict(allow_YY=True),
                  )
              )
          elif c["id"] == "ddd":
              c.update(
                  dict(name=["Date", "with", "time"], type="datetime")
              )
  
      for i in range(len(props["data"])):
          d = props["data"][i]
          d["ccc"] = (
              date(2018, 1, 1) + timedelta(days=3 * i)
          ).strftime("%Y-%m-%d")
          d["ddd"] = (
              date(2018, 1, 1) + timedelta(seconds=7211 * i)
          ).strftime("%Y-%m-%d %H:%M:%S")
  
      return props
  
imports: from datetime import date, timedelta
label_desc: Use image node_id 4 for calling a global function with example usage: generate_mock_data_with_date(rows) and returns: props