code: def _import_platform_generator(platform):
      '''
      Given a specific platform (under the Capirca conventions),
      return the generator class.
      The generator class is identified looking under the <platform> module
      for a class inheriting the `ACLGenerator` class.
      '''
      log.debug('Using platform: %s', platform)
      for mod_name, mod_obj in inspect.getmembers(capirca.aclgen):
          if mod_name == platform and inspect.ismodule(mod_obj):
              for plat_obj_name, plat_obj in inspect.getmembers(mod_obj):  # pylint: disable=unused-variable
                  if inspect.isclass(plat_obj) and issubclass(plat_obj, capirca.lib.aclgenerator.ACLGenerator):
                      log.debug('Identified Capirca class %s for %s', plat_obj, platform)
                      return plat_obj
      log.error('Unable to identify any Capirca plaform class for %s', platformf _import_platform_generator(platform):
      '''
      Given a specific platform (under the Capirca conventions),
      return the generator class.
      The generator class is identified looking under the <platform> module
      for a class inheriting the `ACLGenerator` class.
      '''
      log.debug('Using platform: %s', platform)
      for mod_name, mod_obj in inspect.getmembers(capirca.aclgen):
          if mod_name == platform and inspect.ismodule(mod_obj):
              for plat_obj_name, plat_obj in inspect.getmembers(mod_obj):  # pylint: disable=unused-variable
                  if inspect.isclass(plat_obj) and issubclass(plat_obj, capirca.lib.aclgenerator.ACLGenerator):
                      log.debug('Identified Capirca class %s for %s', plat_obj, platform)
                      return plat_obj
      log.error('Unable to identify any Capirca plaform class for %s', platform)
docs: Given a specific platform (under the Capirca conventions),
      return the generator class.
      The generator class is identified looking under the <platform> module
      for a class inheriting the `ACLGenerator` class.