def _has_required_moto():
 if (not HAS_MOTO):
  return False
 else:
  if (_get_moto_version() < LooseVersion(required_moto_version)):
   return False
  return True

def _has_required_moto ( ) : if ( not HAS_MOTO ) : return False else : if ( _get_moto_version ( ) < LooseVersion ( required_moto_version ) ) : return False return True
returns true/false boolean depending on if moto is installed and correct version .