def tag_by_type(type)
      type = Util.to_constant(Constants::DT, type)
      each_tags.find { |tag| tag.header.d_tag == type }
    end
def tag_by_type(type)
      type = Util.to_constant(Constants::DT, type)
      each_tags.find { |tag| tag.header.d_tag == type }
    end
Get a tag of specific type.
 @param [Integer, Symbol, String] type
   Constant value, symbol, or string of type
   is acceptable. See examples for more information.
 @return [ELFTools::Dynamic::Tag] The desired tag.
 @example
   dynamic = elf.segment_by_type(:dynamic)
   # type as integer
   dynamic.tag_by_type(0) # the null tag
   #=>  #<ELFTools::Dynamic::Tag:0x0055b5a5ecad28 @header={:d_tag=>0, :d_val=>0}>
   dynamic.tag_by_type(ELFTools::Constants::DT_NULL)
   #=>  #<ELFTools::Dynamic::Tag:0x0055b5a5ecad28 @header={:d_tag=>0, :d_val=>0}>

   # symbol
   dynamic.tag_by_type(:null)
   #=>  #<ELFTools::Dynamic::Tag:0x0055b5a5ecad28 @header={:d_tag=>0, :d_val=>0}>
   dynamic.tag_by_type(:pltgot)
   #=> #<ELFTools::Dynamic::Tag:0x0055d3d2d91b28 @header={:d_tag=>3, :d_val=>6295552}>

   # string
   dynamic.tag_by_type('null')
   #=>  #<ELFTools::Dynamic::Tag:0x0055b5a5ecad28 @header={:d_tag=>0, :d_val=>0}>
   dynamic.tag_by_type('DT_PLTGOT')
   #=> #<ELFTools::Dynamic::Tag:0x0055d3d2d91b28 @header={:d_tag=>3, :d_val=>6295552}>