code: def test_fstream_resp_limits_valid(
      relay_server,
      mock_run,
      publish_util,
      inject_file_stream_response,
  ):
      dynamic_settings = {"heartbeat_seconds": 10}
      resp_limits = json.dumps(
          {"exitcode": None, "limits": dynamic_settings}
      )
  
      run = mock_run(use_magic_mock=True)
  
      injected_response = inject_file_stream_response(
          run=run, body=resp_limits
      )
      print(injected_response)
      assert_history(
          relay_server, run, publish_util, inject=[injected_response]
      )
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_file_stream_internal.py
imports: import json
  import unittest.mock
  import pytest
  import wandb
label_desc: Use image node_id 5 for calling a global function with example usage: test_fstream_resp_limits_valid(relay_server, mock_run, publish_util, inject_file_stream_response) without return types