code: def handle_unused_kwargs(unused_kwargs, msg=None):
      if len(unused_kwargs) > 0:
          if msg is not None:
              warnings.warn(
                  f"{msg}: Unexpected arguments {unused_kwargs}"
              )
          else:
              warnings.warn(f"Unexpected arguments {unused_kwargs}")
  
file_path: torchsde/torchsde/_core/misc.py
imports: import warnings
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: handle_unused_kwargs(unused_kwargs, msg) without return types