code: def test_init_with_settings(wandb_init, test_settings):
      # test that when calling `wandb.init(settings=wandb.Settings(...))`,
      # the settings are passed with Source.INIT as the source
      test_settings = test_settings()
      test_settings.update(_disable_stats=True)
      run = wandb_init(settings=test_settings)
      assert run.settings._disable_stats
      assert (
          run.settings.__dict__["_disable_stats"].source
          == wandb_sdk.wandb_settings.Source.INIT
      )
      run.finish()
  
imports: import json
  import os
  import pickle
  import sys
  import numpy
  import pytest
  import wandb
  from wandb import wandb_sdk
  from wandb.errors import UsageError
label_desc: Use image node_id 8 for calling a global function with example usage: test_init_with_settings(wandb_init, test_settings) without return types