code: def parse_options(cls, options):
          
          options = options.copy()
          subdomain = options.pop('subdomain', None)
          endpoint = options.pop('endpoint', None)
          return subdomain, endpoint, options,
docs: Extracts subdomain and endpoint values from the options dict and returns
             them along with a new dict without those values.