code: def set_warnings():
      warnings.filterwarnings(
          "ignore",
          category=FutureWarning,
          message="\n\nsingle_target_shortest_path_length",
      )
      warnings.filterwarnings(
          "ignore",
          category=FutureWarning,
          message="\n\nshortest_path",
      )
      warnings.filterwarnings(
          "ignore",
          category=DeprecationWarning,
          message="\nforest_str is deprecated",
      )
      warnings.filterwarnings(
          "ignore",
          category=DeprecationWarning,
          message="\n\nrandom_tree",
      )
      warnings.filterwarnings(
          "ignore",
          category=DeprecationWarning,
          message="Edmonds has been deprecated",
      )
      warnings.filterwarnings(
          "ignore",
          category=DeprecationWarning,
          message="MultiDiGraph_EdgeKey has been deprecated",
      )
      warnings.filterwarnings(
          "ignore",
          category=DeprecationWarning,
          message="\n\nThe `normalized`",
      )
      warnings.filterwarnings(
          "ignore",
          category=DeprecationWarning,
          message="The function `join` is deprecated",
      )
      warnings.filterwarnings(
          "ignore",
          category=DeprecationWarning,
          message="\n\nstrongly_connected_components_recursive",
      )
      warnings.filterwarnings(
          "ignore",
          category=DeprecationWarning,
          message="\n\nall_triplets",
      )
      warnings.filterwarnings(
          "ignore",
          category=DeprecationWarning,
          message="\n\nrandom_triad",
      )
      warnings.filterwarnings(
          "ignore",
          category=DeprecationWarning,
          message="minimal_d_separator",
      )
      warnings.filterwarnings(
          "ignore", category=DeprecationWarning, message="d_separated"
      )
      warnings.filterwarnings(
          "ignore", category=DeprecationWarning, message="\n\nk_core"
      )
      warnings.filterwarnings(
          "ignore", category=DeprecationWarning, message="\n\nk_shell"
      )
      warnings.filterwarnings(
          "ignore", category=DeprecationWarning, message="\n\nk_crust"
      )
      warnings.filterwarnings(
          "ignore", category=DeprecationWarning, message="\n\nk_corona"
      )
  
file_path: networkx/networkx/conftest.py
imports: import os
  import sys
  import warnings
  from importlib.metadata import entry_points
  import pytest
  import networkx
label_desc: Use image node_id 4 for calling a global function with example usage: set_warnings() without return types