<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_interface_switch_trunk_present( self, nexus_host, intf_type, interface):
 """Check if 'switchport trunk' configs present. :param nexus_host: IP address of Nexus switch :param intf_type: String which specifies interface type. example: ethernet :param interface: String indicating which interface. example: 1/19 :returns mode_found: True if 'trunk mode' present :returns vlan_configured: True if trunk allowed vlan list present """

        result = self.get_interface_switch(nexus_host, intf_type, interface)

        if_type = 'l1PhysIf' if intf_type == "ethernet" else 'pcAggrIf'
        if_info = result['imdata'][0][if_type]

        try:
            mode_cfg = if_info['attributes']['mode']
        except Exception:
            mode_cfg = None

        mode_found = (mode_cfg == "trunk")

        try:
            vlan_list = if_info['attributes']['trunkVlans']
        except Exception:
            vlan_list = None

        vlan_configured = (vlan_list != const.UNCONFIGURED_VLAN)

        return mode_found, vlan_configured