code: def detect_traits(item):
      
      return traits.detect_traits(
          name=item.name, alias=item.alias,
          filetype=(list(item.fetch("kind_51")) or [None]).pop(),
      )
docs: Build traits list from attributes of the passed item. Currently,
          "kind_51", "name" and "alias" are considered.
  
          See pyrocore.util.traits:dectect_traits for more details.