code: def _make_dataset(source_path, dataset_dir, num_samples):
      ext = os.path.splitext(source_path)[1]
  
      samples = []
      for idx in range(num_samples):
          filepath = os.path.join(dataset_dir, "%06d%s" % (idx, ext))
          etau.copy_file(source_path, filepath)
          samples.append(fo.Sample(filepath=filepath))
  
      dataset = fo.Dataset()
      dataset.add_samples(samples)
      return dataset
  
file_path: fiftyone/tests/intensive/utils_tests.py
imports: import os
  import numpy
  import pytest
  import eta.core.utils
  import eta.core.video
  import fiftyone
  import fiftyone.utils.image
  import fiftyone.utils.video
label_desc: Use image node_id 4 for calling a global function with example usage: _make_dataset(source_path, dataset_dir, num_samples) and returns: dataset