code: def _is_env_per_bucket():
      '''
      Return the configuration mode, either buckets per environment or a list of
      buckets that have environment dirs in their root
      '''
  
      buckets = _get_buckets()
      if isinstance(buckets, dict):
          return True
      elif isinstance(buckets, list):
          return False
      else:
          raise ValueError('Incorrect s3.buckets type given in config'f _is_env_per_bucket():
      '''
      Return the configuration mode, either buckets per environment or a list of
      buckets that have environment dirs in their root
      '''
  
      buckets = _get_buckets()
      if isinstance(buckets, dict):
          return True
      elif isinstance(buckets, list):
          return False
      else:
          raise ValueError('Incorrect s3.buckets type given in config')
docs: Return the configuration mode, either buckets per environment or a list of
      buckets that have environment dirs in their root