code: def write_yaml_and_load_dataset(
      yaml_content, dir, force_preprocess=False
  ):
      write_yaml_file(yaml_content, dir)
      return load_dataset(
          gb.OnDiskDataset(dir, force_preprocess=force_preprocess)
      )
  
imports: import os
  import pickle
  import random
  import re
  import tempfile
  import unittest
  import warnings
  import numpy
  import pandas
  import pydantic
  import pytest
  import torch
  import yaml
  from dgl import graphbolt
  from dgl.base import DGLWarning
  from ..None import gb_test_utils
label_desc: Use image node_id 3 for calling a global function with example usage: write_yaml_and_load_dataset(yaml_content, dir, force_preprocess) and returns: load_dataset