original_docstring: 
      Recieves one asset, and returns the expected asset values for enriching offense.
      Args:
          asset (Dict): Asset to enrich the offense with
  
      Returns:
          (Dict): The enriched asset.
      
docstring: Recieves one asset, and returns the expected asset values for enriching offense.
docstring_tokens: Recieves one asset and returns the expected asset values for enriching offense .
code: def create_single_asset_for_offense_enrichment(asset: Dict) -> Dict:
      """
      Recieves one asset, and returns the expected asset values for enriching offense.
      Args:
          asset (Dict): Asset to enrich the offense with
  
      Returns:
          (Dict): The enriched asset.
      """
      interfaces = {'interfaces': [{
          'mac_address': interface.get('mac_address'),
          'id': interface.get('id'),
          'ip_addresses': [{
              'type': ip_address.get('type'),
              'value': ip_address.get('value')
          } for ip_address in interface.get('ip_addresses', [])]
      } for interface in asset.get('interfaces', [])]}
      properties = {prop.get('name'): prop.get('value') for prop in asset.get('properties', [])
                    if 'name' in prop and 'value' in prop}
      offense_without_properties = {k: v for k, v in asset.items() if k != 'properties'}
      return add_iso_entries_to_asset(dict(offense_without_properties, **properties, **interfaces))
code_tokens: def create_single_asset_for_offense_enrichment ( asset : Dict ) -> Dict : interfaces = { 'interfaces' : [ { 'mac_address' : interface . get ( 'mac_address' ) , 'id' : interface . get ( 'id' ) , 'ip_addresses' : [ { 'type' : ip_address . get ( 'type' ) , 'value' : ip_address . get ( 'value' ) } for ip_address in interface . get ( 'ip_addresses' , [ ] ) ] } for interface in asset . get ( 'interfaces' , [ ] ) ] } properties = { prop . get ( 'name' ) : prop . get ( 'value' ) for prop in asset . get ( 'properties' , [ ] ) if 'name' in prop and 'value' in prop } offense_without_properties = { k : v for k , v in asset . items ( ) if k != 'properties' } return add_iso_entries_to_asset ( dict ( offense_without_properties , ** properties , ** interfaces ) )
short_docstring: Recieves one asset, and returns the expected asset values for enriching offense.
short_docstring_tokens: Recieves one asset and returns the expected asset values for enriching offense .
comment: """
      Recieves one asset, and returns the expected asset values for enriching offense.
      Args:
          asset (Dict): Asset to enrich the offense with
  
      Returns:
          (Dict): The enriched asset.
      """