code: def get_quantity_dimension(self, unit):
      from sympy.physics.units import Quantity
  
      # First look-up the local dimension map, then the global one:
      if unit in self._quantity_dimension_map:
          return self._quantity_dimension_map[unit]
      if unit in self._quantity_dimension_global:
          return self._quantity_dimension_global[unit]
      if unit in self._quantity_dimensional_equivalence_map_global:
          dep_unit = self._quantity_dimensional_equivalence_map_global[
              unit
          ]
          if isinstance(dep_unit, Quantity):
              return self.get_quantity_dimension(dep_unit)
          else:
              return Dimension(self.get_dimensional_expr(dep_unit))
      if isinstance(unit, Quantity):
          return Dimension(unit.name)
      else:
          return Dimension(1)
  
imports: from __future__ import annotations
  import collections
  from functools import reduce
  from sympy.core.basic import Basic
  from sympy.core.containers import Dict, Tuple
  from sympy.core.singleton import S
  from sympy.core.sorting import default_sort_key
  from sympy.core.symbol import Symbol
  from sympy.core.sympify import sympify
  from sympy.matrices.dense import Matrix
  from sympy.functions.elementary.trigonometric import TrigonometricFunction
  from sympy.core.expr import Expr
  from sympy.core.power import Pow
label_desc: Use image node_id 4 for calling the _QuantityMapper obj's underlying member method code with example usage: obj.get_quantity_dimension(unit) and returns: self, self, Dimension, Dimension, self, Dimension