code: def test_edit_timedelta():
      from dtale.views import build_dtypes_state, format_data
  
      df = edit_data()
      df, _ = format_data(df)
      with app.test_client() as c:
          data = {c.port: df}
          build_data_inst(data)
          settings = {c.port: {"locked": ["a"]}}
          build_settings(settings)
          dtypes = {c.port: build_dtypes_state(df)}
          build_dtypes(dtypes)
          resp = c.get(
              "/dtale/edit-cell/{}".format(c.port),
              query_string=dict(
                  col="g", rowIndex=0, updated="0 days 00:09:20"
              ),
          )
          assert "error" not in resp.json
          assert pd.Timedelta(
              data[c.port]["g"].values[0]
          ) == pd.Timedelta("0 days 00:09:20")
  
file_path: dtale/tests/dtale/test_edit_cell.py
imports: import datetime
  import json
  import numpy
  import pandas
  import pytest
  from tests.dtale import build_data_inst, build_settings, build_dtypes
  from tests.dtale.test_views import app
label_desc: Use image node_id 7 for calling a global function with example usage: test_edit_timedelta() without return types