code: def has_alpha_band(src_dst):
      
      if (
          any([MaskFlags.alpha in flags for flags in src_dst.mask_flag_enums])
          or ColorInterp.alpha in src_dst.colorinterp
      ):
          return True
      return False
docs: Check for alpha band or mask in source.