original_docstring: 
      Receives list of assets, and enriches each asset with 'Endpoint' entry containing the following:
      - IP addresses of all interfaces.
      - OS name.
      - MAC addresses of the interfaces, if full enrichment was requested.
      - Domain name if full enrichment was requested.
      - Properties enrichment.
  
      Args:
          client (Client): Client to perform API call to retrieve domain names corresponding to the domain IDs.
          assets (List[Dict]): List of assets to be enriched.
          full_enrichment (bool): Whether the asset should be full enriched.
  
      Returns:
          (List[Dict]) List of new assets with enrichment.
      
docstring: Receives list of assets, and enriches each asset with 'Endpoint' entry containing the following:
  IP addresses of all interfaces.
  OS name.
  MAC addresses of the interfaces, if full enrichment was requested.
  Domain name if full enrichment was requested.
  Properties enrichment.
docstring_tokens: Receives list of assets and enriches each asset with ' Endpoint ' entry containing the following : IP addresses of all interfaces . OS name . MAC addresses of the interfaces if full enrichment was requested . Domain name if full enrichment was requested . Properties enrichment .
code: def enrich_assets_results(client: Client, assets: Any, full_enrichment: bool) -> List[Dict]:
      """
      Receives list of assets, and enriches each asset with 'Endpoint' entry containing the following:
      - IP addresses of all interfaces.
      - OS name.
      - MAC addresses of the interfaces, if full enrichment was requested.
      - Domain name if full enrichment was requested.
      - Properties enrichment.
  
      Args:
          client (Client): Client to perform API call to retrieve domain names corresponding to the domain IDs.
          assets (List[Dict]): List of assets to be enriched.
          full_enrichment (bool): Whether the asset should be full enriched.
  
      Returns:
          (List[Dict]) List of new assets with enrichment.
      """
      domain_id_name_dict = get_domain_names(client, assets) if full_enrichment else dict()
  
      def enrich_single_asset(asset: Dict) -> Dict:
          updated_asset = add_iso_entries_to_asset(asset)
          interfaces = updated_asset.get('interfaces', [])
          properties = updated_asset.get('properties', [])
          domain_id = updated_asset.get('domain_id')
          os_name = next((prop.get('value') for prop in properties if prop.get('name') == 'Primary OS ID'), None)
  
          ip_enrichment = {
              'IPAddress': [ip_address.get('value') for interface in interfaces
                            for ip_address in interface.get('ip_addresses', [])
                            if ip_address.get('value')]
          }
  
          os_enrichment = {'OS': os_name} if os_name else dict()
  
          mac_enrichment = {
              'MACAddress': [interface.get('mac_address') for interface in interfaces if
                             interface.get('mac_address')]
          } if full_enrichment else dict()
  
          domains_enrichment = {'Domain': domain_id_name_dict.get(domain_id)} if full_enrichment and domain_id else dict()
  
          basic_properties_enrichment = enrich_asset_properties(properties, ASSET_PROPERTIES_NAME_MAP)
          full_properties_enrichment = enrich_asset_properties(properties,
                                                               FULL_ASSET_PROPERTIES_NAMES_MAP) \
              if full_enrichment else dict()
  
          enriched_asset = dict(asset, **basic_properties_enrichment, **full_properties_enrichment)
          return {'Asset': add_iso_entries_to_asset(enriched_asset),
                  'Endpoint': dict(ip_enrichment, **os_enrichment, **mac_enrichment,
                                   **domains_enrichment)}
  
      return [enrich_single_asset(asset) for asset in assets]
code_tokens: def enrich_assets_results ( client : Client , assets : Any , full_enrichment : bool ) -> List [ Dict ] : domain_id_name_dict = get_domain_names ( client , assets ) if full_enrichment else dict ( ) def enrich_single_asset ( asset : Dict ) -> Dict : updated_asset = add_iso_entries_to_asset ( asset ) interfaces = updated_asset . get ( 'interfaces' , [ ] ) properties = updated_asset . get ( 'properties' , [ ] ) domain_id = updated_asset . get ( 'domain_id' ) os_name = next ( ( prop . get ( 'value' ) for prop in properties if prop . get ( 'name' ) == 'Primary OS ID' ) , None ) ip_enrichment = { 'IPAddress' : [ ip_address . get ( 'value' ) for interface in interfaces for ip_address in interface . get ( 'ip_addresses' , [ ] ) if ip_address . get ( 'value' ) ] } os_enrichment = { 'OS' : os_name } if os_name else dict ( ) mac_enrichment = { 'MACAddress' : [ interface . get ( 'mac_address' ) for interface in interfaces if interface . get ( 'mac_address' ) ] } if full_enrichment else dict ( ) domains_enrichment = { 'Domain' : domain_id_name_dict . get ( domain_id ) } if full_enrichment and domain_id else dict ( ) basic_properties_enrichment = enrich_asset_properties ( properties , ASSET_PROPERTIES_NAME_MAP ) full_properties_enrichment = enrich_asset_properties ( properties , FULL_ASSET_PROPERTIES_NAMES_MAP ) if full_enrichment else dict ( ) enriched_asset = dict ( asset , ** basic_properties_enrichment , ** full_properties_enrichment ) return { 'Asset' : add_iso_entries_to_asset ( enriched_asset ) , 'Endpoint' : dict ( ip_enrichment , ** os_enrichment , ** mac_enrichment , ** domains_enrichment ) } return [ enrich_single_asset ( asset ) for asset in assets ]
short_docstring: Receives list of assets, and enriches each asset with 'Endpoint' entry containing the following:
   IP addresses of all interfaces.
short_docstring_tokens: Receives list of assets and enriches each asset with ' Endpoint ' entry containing the following : IP addresses of all interfaces .
comment: """
      Receives list of assets, and enriches each asset with 'Endpoint' entry containing the following:
      - IP addresses of all interfaces.
      - OS name.
      - MAC addresses of the interfaces, if full enrichment was requested.
      - Domain name if full enrichment was requested.
      - Properties enrichment.
  
      Args:
          client (Client): Client to perform API call to retrieve domain names corresponding to the domain IDs.
          assets (List[Dict]): List of assets to be enriched.
          full_enrichment (bool): Whether the asset should be full enriched.
  
      Returns:
          (List[Dict]) List of new assets with enrichment.
      """