docstr: Run before any command to validate that we are operating in
  a desired environment.
docstr_tok: ["Run","before","any","command","to","validate","that","we","are","operating","in","a","desired","environment","."]
code: def validate_environment(self, echo, datastore_type):
      """
      Run before any command to validate that we are operating in
      a desired environment.
      """
      pass
  
imports: import os
  import platform
  import sys
  from .util import get_username
  from .None import metaflow_version
  from metaflow.exception import MetaflowException
  from metaflow.extension_support import dump_module_info
  from metaflow.mflog import BASH_MFLOG
  from .None import R
label_desc: Use image node_id 3 for calling the MetaflowEnvironment obj's underlying member method code with example usage: obj.validate_environment(echo, datastore_type) without return types