code: def get_impls(interfaces):
      
      if interfaces is None:
          return None
  
      elif isinstance(interfaces, Mapping):
          return {name: interfaces[name]._impl for name in interfaces}
  
      elif isinstance(interfaces, Sequence):
          return [interfaces._impl for interfaces in interfaces]
  
      else:
          return interfaces._impl
docs: Get impls from their interfaces.