def is_sub_module(self):
        return self.has_input_ports() or self.has_output_ports()
Merge hex color with an alpha (opacity) to get an rgba tuple.
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/inspector.py/PipelineInspector.is_sub_module--crossover with--dataset/ETHPy150Open plotly/plotly.py/plotly/matplotlylib/mpltools.py/merge_color_and_opacity