class_docstr: Base class for composite domains, e.g. ZZ[x], ZZ(X). 
docstr: Drop generators from this domain. 
code: def drop(self, *symbols):
      """Drop generators from this domain."""
      symset = set(symbols)
      newsyms = tuple(s for s in self.symbols if s not in symset)
      domain = self.domain.drop(*symbols)
      if not newsyms:
          return domain
      else:
          return self.__class__(domain, newsyms, self.order)
  
file_path: sympy/sympy/polys/domains/compositedomain.py
imports: from sympy.polys.domains.domain import Domain
  from sympy.polys.polyerrors import GeneratorsError
  from sympy.utilities import public
label_desc: Use image node_id 2 for calling the CompositeDomain obj's underlying member method code with example usage: obj.drop() and returns: domain, self