You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: quarantine.rb
    path of file: ./repos/gitlabhq/qa/qa/specs/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'rspec/core'

module QA
  module Specs
    module Helpers
      module Quarantine
        include ::RSpec::Core::Pending

        extend self

        # Skip tests in quarantine un
    
        def skip_or_run_quarantined_tests_or_contexts(example)
          return if Runtime::Env.quarantine_disabled?

          if filters.key?(:quarantine)
            included_filters = filters_other_than_quarantine

            # If :quarantine is focused, skip the test/context unless its metadata
            # includes quarantine and any other filters
            # E.g., Suppose a test is tagged :smoke and :quarantine, and another is tagged
            # :ldap and :quarantine. If we wanted to run just quarantined smoke tests
            # using `--tag quarantine --tag smoke`, without this check we'd end up
            # running that ldap test as well because of the :quarantine metadata.
            # We could use an exclusion filter, but this way the test report will list
            # the quarantined tests when they're not run so that we're aware of them
            if should_skip_when_focused?(example.metadata, included_filters)
              example.metadata[:skip] = "Only running tests tagged with :quarantine and any of #{included_filters.keys}"
            end