code: def get_head(expression):
      
      if isinstance(expression, Wildcard):
          if isinstance(expression, SymbolWildcard):
              return expression.symbol_type
          return None
      return type(expression)
docs: Returns the given expression's head.