repo_description: JMLR: OmniSafe is an infrastructural framework for accelerating SafeRL research.
repo_topics: benchmark constraint-rl constraint-satisfaction-problem deep-learning deep-reinforcement-learning machine-learning pytorch reinforcement-learning safe-reinforcement-learning safe-rl saferl safety-critical safety-gym safety-gymnasium
code: import os
  
  
  try:
      from metadrive import SafeMetaDriveEnv
  
      meta_drive_env_available = True
  except ImportError:
      meta_drive_env_available = False
  
  
  def pytest_ignore_collect(path, config):
      if os.path.basename(path) == 'meta_drive_env.py' and not meta_drive_env_available:
          return True
      return False
  