class_docstr: A class for representing rational function fields. 
class_docstr_tok: ["A","class","for","representing","rational","function","fields","."]
docstr: Convert a ``DMF`` object to ``dtype``. 
docstr_tok: ["Convert","a","``","DMF","``","object","to","``","dtype","``","."]
code: def from_GlobalPolynomialRing(K1, a, K0):
      """Convert a ``DMF`` object to ``dtype``."""
      if K1.gens == K0.gens:
          if K1.dom == K0.dom:
              return K1(a.to_list())
          else:
              return K1(a.convert(K1.dom).to_list())
      else:
          monoms, coeffs = _dict_reorder(a.to_dict(), K0.gens, K1.gens)
  
          if K1.dom != K0.dom:
              coeffs = [K1.dom.convert(c, K0.dom) for c in coeffs]
  
          return K1(dict(zip(monoms, coeffs)))
  
imports: from sympy.polys.domains.field import Field
  from sympy.polys.domains.compositedomain import CompositeDomain
  from sympy.polys.polyclasses import DMF
  from sympy.polys.polyerrors import GeneratorsNeeded
  from sympy.polys.polyutils import dict_from_basic, basic_from_dict, _dict_reorder
  from sympy.utilities import public
label_desc: Use image node_id 15 for calling the FractionField obj's underlying member method code with example usage: obj.from_GlobalPolynomialRing(K1, a, K0) and returns: K1, K1, K1