code: def make_proto_settings(**kwargs):
      proto = wandb_settings_pb2.Settings()
      for k, v in kwargs.items():
          if isinstance(v, bool):
              getattr(proto, k).CopyFrom(BoolValue(value=v))
          elif isinstance(v, str):
              getattr(proto, k).CopyFrom(StringValue(value=v))
      return proto
  
imports: import json
  import os
  import random
  import string
  from google.protobuf.wrappers_pb2 import BoolValue, StringValue
  from wandb.proto import wandb_settings_pb2
  from wandb.sdk.internal.job_builder import JobBuilder
  from wandb.sdk.internal.settings_static import SettingsStatic
  from wandb.util import make_artifact_name_safe
label_desc: Use image node_id 2 for calling a global function with example usage: make_proto_settings() and returns: proto