code: def test_snapshot_create(self):
      try:
          success = True
          p = self.command_run(
              [self.execpath, "snapshot", "create", "-m", "message"]
          )
          out, err = p.communicate()
          out, err = out.decode(), err.decode()
          if err:
              success = False
          elif "Created snapshot with id" not in out:
              success = False
      except Exception:
          success = False
      assert success
  
file_path: datmo/datmo/cli/tests/test_main.py
imports: import os
  import tempfile
  import platform
  import subprocess
  from datmo.core.util.misc_functions import pytest_docker_environment_failed_instantiation
label_desc: Use image node_id 7 for calling the TestMain obj's underlying member method code with example usage: obj.test_snapshot_create() without return types