code: def ensure_dir(self, path_to_folder: str):
      if not os.path.exists(path_to_folder):
          os.makedirs(path_to_folder)
  
file_path: lightly/tests/core/test_Core.py
imports: import os
  import re
  import shutil
  import tempfile
  import unittest
  import numpy
  import pytest
  import torchvision
  from lightly.core import train_model_and_embed_images
label_desc: Use image node_id 1 for calling the TestCore obj's underlying member method code with example usage: obj.ensure_dir(path_to_folder) without return types